xsl-list
[Top] [All Lists]

RE: Problem with the use of JavaScript in a XSL file

2003-03-05 05:45:16


I need Help. I have a problem using the character "<"other ">" in a
javasript in a XSL file.

Hi,

Try wrapping script in <xsl:comment> and in a cdata section:

  <script>
    <xsl:comment>
      <![CDATA[


      ]]>
    </xsl:comment>
  </script>

This will allow you to write javascript that doesnt bother the xslt processor, 
and will wrap the script in <!-- --> in the ouput.

cheers
andrew

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/2003
 

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