This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Disable Output escaping - what am i doing wrong?


Hi,

I'm having problems formatting information from an SQL 2000 data source. The
information is returned
as xml and formatted with xsl. One of the fields contains HTML  such as <P>
and <BR> which are being converted in &lt;P&gt and &lt;BR&gt respectively. I
need to return the "text" data field as HTML,and
believe that i need to use the disable-output-escaping attribute, but don't
know how to use it.

The current list for the xsl is.

<xsl:stylesheet version="1.0" xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform";
xmlns="http://www.w3.org/TR/REC-html40";>
<xsl:output method="html" indent="yes"/>
<xsl:template match = "/">


				<table border = "2" bgcolor = "yellow">
					<tr>
						<th>PressReleaseID</th>
						<th>Headline</th>
						<th>text</th>

					</tr>
					<xsl:for-each select = "SITES/PressReleases">
						<tr>
							<td class="nav-breadcrumb-title">
								<xsl:value-of select = "PressReleaseID"/>
							</td>
							<td>
								<xsl:value-of select = "Headline"/>

							</td>
							<td>
								<xsl:value-of select = "text"/>
							</td>

						</tr>
					</xsl:for-each>
				</table>

</xsl:template>
</xsl:stylesheet>




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]