#44 CDATA output doesn't work with namespace

v6.5
closed
5
2012-10-08
2001-12-09
Michael Kay
No

When the cdata-section-elements attribute of
xsl:output includes a prefixed element name (e.g.
ns:item), the element name is not recognized and its
contents are therefore not output as CDATA.

The same bug means that attribute value templates in
xsl:output (an XSLT 1.1 feature) are not always
expanded.

Present in 6.5 and previous releases.

The simple fix is to delete the call on
setOutputProperties() in the setPreparedStyleSheet
method of the Controller class. However, this has a
side-effect, which that a call on getOutputProperties
() on the Controller (i.e. on the JAXP Transformer)
will no longer read the "raw" (unexpanded) xsl:output
properties from the stylesheet.

Discussion

  • Michael Kay

    Michael Kay - 2001-12-21

    Logged In: YES
    user_id=251681

    Cleared in 7.0

     
  • Michael Kay

    Michael Kay - 2002-02-20

    Logged In: YES
    user_id=251681

    Cleared in 7.0 and in 6.5.1

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks