Closed Bug 240162 Opened 22 years ago Closed 22 years ago

Need to implement the correct handling of the disable-output-escaping Attribute

Categories

(Core :: XSLT, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 98168

People

(Reporter: thomas.js, Assigned: peterv)

Details

User-Agent: Thomas J.S. Build Identifier: It seems that transformiix can't handle the disable-output-escaping Attribute in XSLT Reproducible: Always Steps to Reproduce: To try the problem: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="foo.xsl"?> <doc> <foo><![CDATA[hello,<br /><br />here some lorem ipsum <br /><br /><a href="http://bugzilla.mozilla.org/">http://bugzilla.mozilla.org/</a><br /><br />and here a lot more lorem ipsum]]></foo> </doc> <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" /> <xsl:template match="/"> <html> <head> <title>Untitled</title> </head> <body> <xsl:apply-templates /> </body> </html> </xsl:template> <xsl:template match="doc"> <xsl:apply-templates /> </xsl:template> <xsl:template match="foo"> <p><xsl:value-of select="." disable-output-escaping="yes" /></p> </xsl:template> </xsl:stylesheet> Actual Results: <p>hello,&lt;br /&gt;&lt;br /&gt;here some lorem ipsum &lt;br /&gt;&lt;br /&gt;&lt;a href="http://bugzilla.mozilla.org/"&gt;http://bugzilla.mozilla.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and here a lot more lorem ipsum</p> Expected Results: <p>hello,<br /><br />here some lorem ipsum <br /><br /><a href="http://bugzilla.mozilla.org/">http://bugzilla.mozilla.org/</a><br /><br />and here a lot more lorem ipsum</p>
*** This bug has been marked as a duplicate of 98168 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.