Closed
Bug 233921
Opened 21 years ago
Closed 21 years ago
disable-output-escaping="yes" in xsl:text has no effect on xml+xsl -> xhtml transformation
Categories
(Core :: XSLT, defect)
Tracking
()
People
(Reporter: scotty, Assigned: peterv)
Details
User-Agent:
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; PL; rv:1.5) Gecko/20031007 Firebird/0.7
I have file bug.xml:
<?xml version="1.0" encoding="iso-8859-2"?>
<?xml-stylesheet type="text/xsl" href="bug.xsl"?>
<page>
<BEGIN/>
<CONTENT>aaaa</CONTENT>
<END/>
</page>
and file bug.xsl:
<?xml version="1.0" encoding="iso-8859-2"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" encoding="iso-8859-2"/>
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="BEGIN">
<xsl:text disable-output-escaping="yes">
<![CDATA[
<h1>
]]>
</xsl:text>
</xsl:template>
<xsl:template match="CONTENT">
Just some content
<br/>
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="END">
<xsl:text disable-output-escaping="yes">
<![CDATA[
</h1>
]]>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
and I get as a result in mozilla:
<h1> Just some content
aaaa </h1>
as if there was no disable-output-escaping="yes"
The same files run in IE 6.0 properly. Also when transformed with Sablotron on
server side they give proper result ("Just some content
aaaa" displayed in h1 style).
Reproducible: Always
Steps to Reproduce:
1. create files bug.xml and bug.xsl in the same directory
2. open file bug.xml with mozilla
Actual Results:
You see in in mozilla window:
<h1> Just some content
aaaa </h1>
in plain style
Expected Results:
It should interpret <h1> </h1> tags and display:
Just some content
aaaa
but in h1 style.
I guess mozilla for text node in stylesheet generates always text node in result
xtml tree and doesn't interpret in any further.
Assignee | ||
Comment 1•21 years ago
|
||
*** This bug has been marked as a duplicate of 98168 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•