Re: How do In preserve '<' and '>' in <SCRIPT> [IE5 beta parsing]

Subject: Re: How do In preserve '<' and '>' in <SCRIPT> [IE5 beta parsing]
From: James Clark <jjc@xxxxxxxxxx>
Date: Thu, 31 Dec 1998 08:49:04 +0700
Something like this should work:

<script><xsl:comment><![CDATA[
if (x < y) foo()
]]></xsl:comment></script>

Jean-Robert Wiame wrote:
> 
> Hi,
> The goal of my XSL page is to create in memory a HTML page. In the HTML
> I need a <SCRIPT> section with Javascript code.
> In this section I must use the characters '<' and '>' for comparisons.
> But with IE 5.0 Beta, I can't insert the '<' and '>' alone.
> I don't know any escape type sequence for these characters.
> the <xsl:cdata> rule didn't preserve these characters.
> I can't use &lt; and &gt;
> 
> How could I use these characters and preserve them from being parsed by
> IE5?
> 
> Best regards,
> 
> Wiame Jean-Robert
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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


Current Thread