I have this xml generated from ASP with values from a database as follows:
<?xml version="1.0"?>
<report>
<row>
<column><caption>ID</caption>
<value>1</value>
</column>
<column><caption>Notes</caption>
<value>Approvedby <FONT COLOR="RED"><B>ABC</B></FONT></value>
</column>
</row>
</report>
One of the column elements has html embedded in it. When transformed with XSL, i need to see the HTML formatting on the page but the FONT and Bold tags appear as it is.
The xsl i use is sthg like this
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=" <xsl:template match="/">
<xsl:for-each select="report">
<table>
<xsl:for-each select="row">
<tr>
<xsl:for-each select="column">
<td><xsl:value-of select="value"/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
What should i do to see effect of the HTML formatting. I tried using xslutput and xsl:text with the disable-output-escaping option set to yes , but i get the error "Keyword xsl:text/xslutput may not be used here."
Thanks
Rachel
<?xml version="1.0"?>
<report>
<row>
<column><caption>ID</caption>
<value>1</value>
</column>
<column><caption>Notes</caption>
<value>Approvedby <FONT COLOR="RED"><B>ABC</B></FONT></value>
</column>
</row>
</report>
One of the column elements has html embedded in it. When transformed with XSL, i need to see the HTML formatting on the page but the FONT and Bold tags appear as it is.
The xsl i use is sthg like this
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=" <xsl:template match="/">
<xsl:for-each select="report">
<table>
<xsl:for-each select="row">
<tr>
<xsl:for-each select="column">
<td><xsl:value-of select="value"/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
What should i do to see effect of the HTML formatting. I tried using xslutput and xsl:text with the disable-output-escaping option set to yes , but i get the error "Keyword xsl:text/xslutput may not be used here."
Thanks
Rachel