Subject: AW: [xsl] XML -> XML preserving CDATA From: "Roman Heinz" <rheinz@xxxxxxxxx> Date: Wed, 12 Sep 2001 13:21:41 +0200 |
> Von: Christopher R. Maden [mailto:crism@xxxxxxxxx] > Gesendet: Mittwoch, 12. September 2001 11:35 > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Betreff: Re: [xsl] XML -> XML preserving CDATA > > ><foo><![CDATA[ Chic&Apart ]]></foo> > ><bar><![CDATA[ 99 < 100 ]]></bar> > > > >Should pass the transformation untouched and shoud not result in > > > ><foo>Chic&Apart</foo> > ><bar>99 < 100</bar> > > > >which would be obviously invalid input for further processing. > > No XSLT engine should do that, either. What you're most like > to get is > > <foo> Chic&Apart </foo> > <bar> 99 < 100 </bar> Of cource you are are right at this. My fault (). > (note the spaces, which are part of those CDATA marked sections) > > This is valid input for further processing, and is exactly > identical in > everything except the syntax to your input document. I agree. But at the end of my processing, there may be some Java Application receiving the Document as a String. Using DOM, or SAX parsing at this point would give me the desired result, but when I want to do a simple task without parsing, using String manipulation, I see escaped data in the String. regards, Roman XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XML -> XML preserving CDA, Michael Kay | Thread | Re: AW: [xsl] XML -> XML preserving, David Carlisle |
RE: [xsl] XML -> XML preserving CDA, Michael Kay | Date | [xsl] Getting the latest date, Gustaf Liljegren |
Month |