This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How I can include javscript code ?


>> There's no need to disable output escaping if you enclose your code
in
>> <![CDATA[ ]]> tags.

To get javascript in your output simply use a combination of
<xsl:comment> and cdata sections:

    <script>
    <xsl:comment>
    <![CDATA[
		for(var i = 0;i<3;i++)
		{
		  alert('hello');
		}
	]]>
    </xsl:comment>
    </script>

cheers
andrew


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]