Hello everybody,
I use the same examples RGeo posted at 27 Aug. I encounter exactly the same problem with her. Suggestions and tips are most welcome at this stage.
This xml generated from ASP with values (in html format) from a database (SQL server) 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 xsl
utput and xsl:text with the disable-output-escaping option set to yes , but it did not work.
Many thanks
Henry
I use the same examples RGeo posted at 27 Aug. I encounter exactly the same problem with her. Suggestions and tips are most welcome at this stage.
This xml generated from ASP with values (in html format) from a database (SQL server) 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 xsl
Many thanks
Henry