acestuff
06-15-2010, 09:08 AM
I have an xsl stylesheet.
I want to populate it (is that the correct termonology?) with data from a xml file to form a HTML page.
The data is HTML like:
<data><div>Test</div></data>
<data><b>Data includes HTML element</b></data>
However when the xsl is populated, the tags are escaped - I want the browser to render them as HTML tags. I have tried:
<xsl:output method="html"/>
<xsl:value-of select="comment" disable-output-escaping="yes"/>
But these don't work (a cross browser solution is required.)
Anyone have any suggestions?
Many thanks,
Colin
Note: the full story is much more complicated with stuff been created with Javascript but this is definately where the problem lies...
I want to populate it (is that the correct termonology?) with data from a xml file to form a HTML page.
The data is HTML like:
<data><div>Test</div></data>
<data><b>Data includes HTML element</b></data>
However when the xsl is populated, the tags are escaped - I want the browser to render them as HTML tags. I have tried:
<xsl:output method="html"/>
<xsl:value-of select="comment" disable-output-escaping="yes"/>
But these don't work (a cross browser solution is required.)
Anyone have any suggestions?
Many thanks,
Colin
Note: the full story is much more complicated with stuff been created with Javascript but this is definately where the problem lies...