RE: [xsl] Copy CDATA nodes from XML to XML format w/ XALAN

Subject: RE: [xsl] Copy CDATA nodes from XML to XML format w/ XALAN
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sun, 3 Mar 2002 21:34:50 -0000
> I am trying to transform XML to XML with included CDATA and
> keep that CDATA node enclosed with a CDATA tag.
>

CDATA is not part of the XML information set or of the XPath data model.
It's simply a convenient way of entering text that avoids having to escape
all the "<" characters as "&lt;". Therefore, CDATA boundaries can't be
preserved through the transformation.

But you can indicate that you want CDATA used in the output using the
cdata-section-elements attribute of xsl:output.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread