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

RE: xsl:copy-of

Subject: RE: xsl:copy-of
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 21 May 2001 11:33:26 +0100
xsl copy of cdata
> This does the job fine. Now I want to make my XSLT more
> generic so I don't
> have to specifically say that the "<BODY>" is a CDATA
> section. Basically I
> want an exact copy of the original document whatever the
> original document
> may be.

If you're saying, you want CDATA sections in the input to result in CDATA
sections in the output, you can't: the XML parser throws away the
information as to whether the input was CDATA before the XSLT transformer
gets to see it.

This is because in the XPath data model

<BODY><![CDATA[SomeData]]></BODY>

and

<BODY>SomeData</BODY>

are defined to be precisely equivalent: they are simply different ways of
writing the same thing.

Mike Kay


 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.