This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: cdata output and different xslt processors
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] cdata output and different xslt processors
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 29 Oct 2001 15:22:57 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> > 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 "<", 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