cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject How do I render a > in JavaScript?
Date Thu, 30 Sep 2004 10:18:28 GMT
I have scripts.xsl which transforms scripts.xml.

Scripts.xml contains information to write JavaScript.

I want to write:
if (i > 0)

I know I need to write > instead of >

The problem is, my transformed javascript then reads

if (i > 0)

My browser finds the ; and thinks it's the end of my line and my whole JavaScript
is messed up and doesn't run.
How do I do this correctly...

My  current XML is like this...
     <line>if (i &gt; 0)</line>

I want the output to be 
if (i > 0) 

Thanks in advance for the help.

Get Tiscali Broadband From £15:99

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message