cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p318o...@tiscali.co.uk
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...
<function>
  <name>somename</name>
  <lines>
     <line>if (i &gt; 0)</line>
  </lines>
</function>

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

Thanks in advance for the help.

__________________________________________________________________
Get Tiscali Broadband From £15:99
http://www.tiscali.co.uk/products/broadbandhome/




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message