[xsl] Re: Retaining value of a Global variable

Subject: [xsl] Re: Retaining value of a Global variable
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Mon, 19 Jul 2004 10:35:08 -0400
>For making a variable global u have to use some
>scripting languafe like javascript or jscript and then
>use getter, setter method.

Be careful here. XSLT is officially a functional language. There is no
actual promise made about the order of execution of the code, except that
values will be computed before they are used. This makes side-effects in
extensions rather hazardous in the long term, unless they're structured
such that data flow from one to the next will keep them sequenced
appropriately (the returned value of an earlier operation is used as a
parameter to the later one).

There are things you can get away with when working in a single version of
a single processor which may not work elsewhere, and may not even work in
the next version of that processor. Caveat Hacker.

Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk

Current Thread