RE: [xsl] CData escaping

Subject: RE: [xsl] CData escaping
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 6 Feb 2002 19:07:44 -0000
> Hi all,
>  Very simply, I'm trying to do the following:
>
> <![CDATA[</i>]]>
>
> but the < and > are being escaped as &lt; and &gt; 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


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


Current Thread