This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How I can include javscript code ?
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 10 Jul 2002 09:43:48 +0100
- Subject: RE: [xsl] How I can include javscript code ?
- Reply-to: xsl-list at lists dot mulberrytech dot com
>> 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