RE: [xsl] cdata output and different xslt processors

Subject: RE: [xsl] cdata output and different xslt processors
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 29 Oct 2001 15:22:57 -0000
> > Saxon does indeed pass the contents of the CDATA section to the
> > application
> > "as-is".
>
>
> but it does not leave it "as-is", it escapes the "<" and ">".

If you have "<" in a CDATA section, then what the application sees is a "<"
character. On serialization to XML, this will appear as "&lt;", to ensure
that any application processing the XML again sees it as a "<" character. In
other words, the processing is all designed to ensure that the "<" remains a
less-than symbol and is never misinterpreted as markup.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread