Closed
Bug 197988
Opened 22 years ago
Closed 22 years ago
disable-output-escaping="yes" attribute of xsl:text is ignored
Categories
(Core :: XSLT, defect)
Tracking
()
People
(Reporter: angelo.nicolini, Assigned: peterv)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
When assigning a XSL to an XML by the <?xml-stylesheet> tag,
the XSL tag <xsl:text disable-output-escaping="yes"><aaa></xsl:text>
produces an output similar to
<xsl:text disable-output-escaping="no"><aaa></xsl:text>
I use the following XML:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<test/>
and following XSL
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" method="html"/>
<xsl:template match="/">
<html>
<body>
<xsl:text disable-output-escaping="yes"><aaa></xsl:text><br/>
<xsl:text disable-output-escaping="no"><bbbb></xsl:text>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Reproducible: Always
Steps to Reproduce:
Open the XML file test.xml, diectly as file://c:/tmp/test.xml or using a web server;
Actual Results:
the browser shows a page with the following output
<aaa>
<bbbb>
that is (html) <aaa> <bbbb>
Expected Results:
The browser should only show
<bbbb>
that is (html) <aaa> <bbbb>
| Assignee | ||
Comment 1•22 years ago
|
||
Invalid. See bug 98168, comment 11.
*** 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.
Description
•