[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|