IE and Mozilla XSLT CDATA diffs
"Jim Harlow" <[email protected]> Wed, 11 Apr 2007 08:15:17 -0400
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am trying to migrate an HTML document into XML. Some of the markup needs
to remain in the XML as descriptive text.
I do not understand why IE appears to be correct whereas Mozilla appears to
be incorrect. I must be missing something.
Thanks in advance for your help and insight.
Jim
=================================
xml
=================================
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="file:///c:/teds/test.xsl"?>
<report>
<desc>
<![CDATA[
text before the list
<ul>
<li>Bullet 1
<li>Bullet 2
<li>Bullet 3
</ul>
text after the list
]]>
</desc>
</report>
=================================
xsl
=================================
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:value-of select="report/desc" disable-output-escaping="yes"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
=================================
IE 6.0 output
=================================
text before the list
a.. Bullet 1
b.. Bullet 2
c.. Bullet 3
text after the list
=================================
Firefox 2.0.0.3 output
=================================
text before the list <ul> <li>Bullet 1 <li>Bullet 2 <li>Bullet 3 </ul> text
after the list