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

Re: XSL Transformation of CDATA sections

Subject: Re: XSL Transformation of CDATA sections
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Mon, 4 Mar 2002 12:47:02 -0500
xsl transformation cdata
["Clark, Jason]
>
> I have an xml file that I transforms into a new xml structure.  Within the
> input xml some elements have CDATA sections.  Is there a way to test if an
> element has a CDATA?  So the output xml will have the same.

This was already discussed on the list yesterday.  The simple answer is that
you cannot find out if an element has CDATA content.  That is because the
xml parser turns all the CDATA into regular character data - that's what the
CDATA section means - so when the xslt processor gets it, there is no longer
any indication of the origin of any characters, whether they came from
entities, CDATA or whatever.

If you are doing anything with normal xml processors, there is no need for
knowing which elements had contained CDATA sections.  Why do you think that
you need to know?

Cheers,

Tom P


 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.