Re: [xsl] [XSLT 1.0] How to remove CDATA sections?

Subject: Re: [xsl] [XSLT 1.0] How to remove CDATA sections?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 30 Jun 2010 22:55:40 +0100
On 30/06/2010 18:56, Costello, Roger L. wrote:
I would like the XSLT program to remove all CDATA sections in any XML document

PS


this is like asking to remove all attributes whose value is quoted by " rather than ' clearly it's possible but it is not a criterion expressable by xml tools which are designed not to see such syntactic variants. a perl (or sed or awk or ....) regexp could easily do this of course, but any XML application (DOM excepted) should treat
<![CDATA[a]]> the same as a, so can't remove one and not the other.


David

Current Thread