Closed
Bug 264135
Opened 20 years ago
Closed 20 years ago
XHTML entities aren't processed when output using <xsl:text> with output escaping off.
Categories
(Core :: XSLT, defect)
Tracking
()
People
(Reporter: consulatewizard, Assigned: peterv)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040614 Firefox/0.9 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040614 Firefox/0.9 XHTML entities, such as © should be displayed as the proper characters, such as ©. Instead, the entity reference is output to the page as is. The entities are created using the xsl:text element, e.g.: <xsl:text disable-output-escaping="yes">&copy;</xsl:text> Since XHTML is XML, I'm currently using <xsl:output method="xml"... /> as well as specifying the doctype for XHTML 1.0 Strict. Reproducible: Always Steps to Reproduce: 1. <xsl:output method="xml" omit-xml-declaration="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" encoding="UTF-8" indent="yes"/> 2. (In an xsl:template element) <xsl:text disable-output-escaping="yes">&copy;</xsl:text> 3. Render XML document with associated XSL stylesheet in browser. Actual Results: The entity reference © was not rendered correctly in the browser (it showed as the entity itself, i.e. "©"). Expected Results: The copyright symbol should've been rendered.
| Assignee | ||
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 98168 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•