Subject: Re: [xsl] XSL Transformation of CDATA sections From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Mon, 4 Mar 2002 12:47:02 -0500 |
["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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL Transformation of CDA, cutlass | Thread | RE: [xsl] XSL Transformation of CDA, Michael Kay |
Re: [xsl] char entities problems wi, David Carlisle | Date | [xsl] PROG-TIME, William Rutford |
Month |