Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

3 CDATA output and disable-output-escaping - ID: 636661
Last Update: Settings changed ( mhkay )

When disable-output-escaping="yes" is used for text in
an element listed in <xsl:output
cdata-section-elements>, Saxon effectively ignores the
disable-output-escaping request. For example,

<xsl:output cdata-section-elements="z"/>

<xsl:template match="/">
<z>
<xsl:text
disable-output-escaping="yes">&x;</xsl:text>
</z>
</xsl:template>

produces the output

<z><![CDATA[&x;]]></z>

which is the same as if d-o-e were not requested.

Although the XSLT 1.0 specification is not explicit on
the point, it seems that the only reasonable way to
honour the serialization requests is to output

<z>&x;</z>

Bug present in Saxon 6.5.2, Saxon 7.2, and all earlier
releases. Source code fixed in code base for 7.3. See
test case bug50 (originally written for a different
problem).


Michael Kay ( mhkay ) - 2002-11-11 16:22

3

Closed

Fixed

Michael Kay

XSLT conformance

v6.5.2

Public


Comments ( 2 )

Date: 2003-08-07 12:52
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Source code fixed for 6.5.3


Date: 2002-11-18 14:16
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 7.3


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2003-08-14 14:21 mhkay
resolution_id None 2003-08-14 14:21 mhkay
close_date - 2003-08-14 14:21 mhkay
artifact_group_id None 2002-11-11 16:23 mhkay