[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL Transformation of CDATA sections
["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
|
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
|