This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: CData escaping
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 6 Feb 2002 19:07:44 -0000
- Subject: RE: [xsl] CData escaping
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Hi all,
> Very simply, I'm trying to do the following:
>
> <![CDATA[</i>]]>
>
> but the < and > are being escaped as < and > in the
> output which is
> not what I want. How do output the symbols themselves? My
> output method is
> html and I'm using xalan 1.2.
By putting the <i/> in CDATA, you are telling the system that the "<" and
">" are ordinary characters, and are not to be treated as markup. If you
want them treated as markup, don't put them in CDATA.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list