Subject: RE: [xsl] How I can include javscript code ? From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx> Date: Wed, 10 Jul 2002 09:43:48 +0100 |
>> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How I can include javscri, David Carlisle | Thread | Re: [xsl] How I can include javscri, Charles Knell |
RE: [xsl] including files, Andrew Welch | Date | Re: [xsl] Design question, Jeni Tennison |
Month |