Re: [xsl] escaping from CDATA

Subject: Re: [xsl] escaping from CDATA
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 26 Oct 2001 02:51:23 -0600 (MDT)
> I originally said the text was wrapped in CDATA:
> 
>    <![CDATA[<element attr="100"><a>100</a><b>200</b></element>]]>
> 
> Would it make any difference if the string was not wrapped in CDATA
> but just had the angle brackets represented as entities (which is
> the actual case):
> 
>   &lt;element attr=&quot;100&quot;&gt; ... &lt;/element&gt;

No, it wouldn't make a difference, because both ways you wrote it mean
*exactly* the same thing. (but no need for the &quot; or &gt; -- just the
&lt;)

   - Mike
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

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


Current Thread