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: Output of a Jscript variable


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


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