Closed Bug 236363 Opened 20 years ago Closed 20 years ago

xsl:value-of disable-output-escaping ignored in <![CDATA[]]> sections

Categories

(Core :: XSLT, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 98168

People

(Reporter: curtisweyant, Assigned: peterv)

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

The disable-output-encoding attribute of xsl:value-of appears to be ignored when
using <![CDATA[ sections.  That is, the same result happens no matter what that
value of disable-output-encoding is.

Reproducible: Always
Steps to Reproduce:
1. Create a simple XML file that contains a <![CDATA[ section.
2. Create a simple XSLT stylesheet that applies the value of the CDATA section
in a <xsl:value-of> tag with the attribute disable-output-escaping="yes".
3. Link the stylesheet to the XML file.
4. View it.
Actual Results:  
The text in the CDATA section was escaped (i.e., <, > and & were changed to
entities).

Expected Results:  
The text in the CDATA should not have been escaped when disable-output-escaping
was set to "yes".

*** This bug has been marked as a duplicate of 98168 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Summary: xsl:value-of disable-output-encoding ignored in <![CDATA[]]> sections → xsl:value-of disable-output-escaping ignored in <![CDATA[]]> sections
Adding simple XML file attachment.
Attaching simple stylesheet.
Attached file Expected HTML output
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: