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">&amp;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
XSLT conformance
v6.5.2
Public
| 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 |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use