This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: dealing with CDATA (was dealing with CDATA on the client-side)
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: dealing with CDATA (was dealing with CDATA on the client-side)
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 7 Jun 2000 09:35:57 +0100
- Reply-To: xsl-list at mulberrytech dot com
> SYNOPSIS:
> What do I need to do to keep an XSL transform in an MS XMLDOM
> environment from converting < and > in a CDATA node to < and >?
>
> <etcetera>
> <![CDATA[this is a <a href="http://yahoo.com>test link/a>]]>
> </etcetera>
>
The characters "<" and ">" within CDATA are text characters, not markup. You
can trick the serializer into outputting them as markup by using
disable-output-escaping="yes", provided your XSLT processor supports this
feature (it's not mandatory).
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list