This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Output of a Jscript variable
- From: "Stuart Celarier" <stuart at ferncrk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 8 May 2002 10:55:02 -0700
- Subject: RE: [xsl] Output of a Jscript variable
- Reply-to: xsl-list at lists dot mulberrytech dot com
Use a 'return' statement.
RTFM: Microsoft XML Core Services (MSXML) 4.0 / XSLT Reference / XSLT
Elements / msxsl:script Element; see the example. This help file is
provided with the MSXML SDK, on the MSDN Library CD and on-line at
http://msdn.microsoft.com/library/.
Cheers,
Stuart
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of Sébastien
Tisserant
Sent: Wednesday, May 08, 2002 00:17
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] Output of a Jscript variable
hello,
i have an XSL with that script:
<msxsl:script language="JavaScript" implements-prefix="fct"> var
xfils=new Array(); var xnum=new Array(); var dernier=0; var CPTnum=0;
function FnNewFils(valeur) { dernier=dernier+1;
xfils[dernier]=valeur; CPTnum=CPTnum+1; xnum[dernier]=CPTnum;
return xfils[dernier]; } function FnRemoveFils() { if (dernier !=
0) { dernier=dernier-1; } } </msxsl:script>
could you tell the way to output the value of xfils[dernier] or
xnum[dernier] ?
thanks
sébastien
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list