[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl doubts

Subject: Re: xsl doubts
From: jim smith <jim@xxxxxxxxx>
Date: Tue, 7 Nov 2000 16:31:21 +0000
src jim smith
this should work:

&lt;script&gt;

alert('boo');

<xsl:variable name="foo" select="goo"/>

alert('$foo');

var someArray = [0,1,2]

   for (i=0;i&lt;someArray.length;i++) {
      alert('$foo: ' + i);
   }

&lt;/script&gt;


or disable output escaping for the javascript section with xsl:text:

<xsl:template name="jscriptRollovers">
    <xsl:text disable-output-escaping="yes"><![CDATA[
    <script language="JavaScript">
    <!--
    var thisimg;

var c_img=new Array(2),n0_img=new Array(2),n1_img=new Array(2),n2_img=new Array(2),n3_img=new Array(2);
if (document.images){
for (i=0;i<img_set.length;i++){
thisimg=eval(img_set[i]+"_img");
for (j=0;j<thisimg.length;j++){
thisimg[j]=new Image();
thisimg[j].src="/app/images/"+img_name[i]+j+".gif";
}
}
}
function mact(imgs,imgn,st,ly){
ly+=0;
if (document.images){
thisimg=eval(imgs+"_img");
if (document.layers && ly){
document["d"+imgn].document[imgn].src=thisimg[st].src;
}else{
document[imgn].src=thisimg[st].src;
}
}
}
//-->
</script>
]]></xsl:text>
</xsl:template><!-- ends jscript template -->
--



jim smith 020 7837 0377


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.