[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

copying CData sections from the source to destination docume

Subject: copying CData sections from the source to destination documents
From: R_KNOWLES <Richard.Knowles@xxxxxxxxxxx>
Date: Tue, 14 Nov 2000 14:59:51 +0000 (GMT)
source to destination
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. &lt;), 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.