Subject:Changing values of xsl:variables Author:Peter Ciuffetti Date:25 May 2000 01:22 PM
Hello,
From my reading of the XSLT spec, xsl:variables are essentially constants.
Yet I didn't learn this until after I had gotten into the habit with Stylus of writing stylesheets that freely changed variables. Though I find it very helpful to be able to do so, I'm finding that my stylesheets don't work in other XSL processors if I take advantage of this capability in Stylus. Is this a 'feature' of Stylus or a 'bug'? Is it likely to disappear? Here's an example of Stylus letting me change a variable and the same stylesheet under Xalan:
Subject:Changing values of xsl:variables Author:(Deleted User) Date:25 May 2000 03:06 PM
The spec reads, "It is an error if a binding established by an xsl:variable or xsl:param element within a template shadows another binding established by an xsl:variable or xsl:param element also within the template." It would seem both Stylus and Xalan have a bug in not signalling the error. This will be fixed in a future release. Thanks for your report.
Subject:Changing values of xsl:variables Author:Peter Ciuffetti Date:31 May 2000 07:22 AM
When I use an xsl:variable inside a template, is it going to get a new binding every time the template is invoked, or will the binding be permanent after the first time the template is called?