This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Including CDATA tags in XSLT...
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Including CDATA tags in XSLT...
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 3 Nov 2000 14:39:02 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
> How can I write out the CDATA tag when I tranform one
> XML document to another XML document using XSLT ?
>
this is a rare case where XSLT does allow you some control over the lexical
representation of the output file: use the cdata-section-elements attribute
of <xsl:output>
> <NAME><![CDATA[Mrs%20Jane%20Fleming]]></NAME>
%20 does not represent a space in a CDATA section, only in an escaped URI.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list