As far as I know, there is no way to turn off lazy variable evaluation in
interpretive Xalan.
The official position is that since XSLT is a functional language, you
should never write code that can tell when variables are evaluated --
because there is no guarantee that a stylesheet will execute in any
specific order, as long as the expected results are generated. Speculative
or out-of-order execution may become increasingly likely in the future as
we try to find new ways to optimize the stylesheet's execution. You really
are safest if your extension functions are just that, stateless functions.
______________________________________
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