This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
copying CData sections from the source to destination documents
- To: XSL-List at mulberrytech dot com
- Subject: copying CData sections from the source to destination documents
- From: R_KNOWLES <Richard dot Knowles at reuters dot com>
- Date: Tue, 14 Nov 2000 14:59:51 +0000 (GMT)
- Autoforwarded: false
- Disclose-recipients: prohibited
- Hop-count: 2
- Reply-To: xsl-list at mulberrytech dot com
- Sensitivity: Company-Confidential
Hi,
Is it possible to copy an element and its contents from a source document to a
destination document exactly as it is contained in the source?
I have a stylesheet that alters xml documents through the addition and
alteration of data. One of the source document elements may contain a CData
section. I want this to be copied to the output document exactly as it is in
the input, with the CData section intact.
Currently I am copying a node and its descendants (including the descendant
with the CData section) using <xsl:copy-of select="."/>. The output from this
has been altered though to convert all invalid characters in the CData section
into entity references (i.e. <), and it is no longer contained in a CData
section.
So, is there a way that I can specify that a node and its descendants should be
copied 'as is'?
Thanks
Richard.
-----------------------------------------------------------------
Visit our Internet site at http://www.reuters.com
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Reuters Ltd.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list