Subject: Re: [xsl] Preserve CDATA for all elements|
From: "Jagdishwar (Jagsmiles)" <jagsmiles@xxxxxxxxx>
Date: Sun, 14 May 2006 20:16:59 +0200
areSorry, can't be done. The XSLT processor doesn't get to see where the CDATA sections were in the source document.
Remember that CDATA sections are just a keyboard shortcut. The following
inall exactly equivalent, and your XSLT processor will see the same input whichever form you use:
<e>">"</e> <e>">"</e> <e><![CDATA[">"]]></e>
As a matter of interest, *why* do you want to preserve the CDATA sections
the input document?
If it's really important, you could put the XML through a Perl program or similar that converts the CDATA section to an XML element as a pre-processing phase and then does the reverse as a post-process.
This is defenetly a possible solution. Or else I would have to look into the client application, to check how i can remove the issues like this.
Michael Kay http://www.saxonica.com/
Thank you all. Kind Regards, Jagdishwar, Jagsmiles AT gmail DOT com