Is it possible to overwrite global variables?

Wang, Dapeng Dapeng.Wang at
Wed Sep 8 19:01:50 BST 1999


Sometimes I feel that I need to overwrite the value of a globally declared
variable. Is that possible? I think it is very pratical to save some
tipping. I just want to give the same variable different values depending on
some condition, so that I can evaluate it later.

<xsl:if test="Cond1">
<xsl:variable name="GlobaleVariable" select="1">
<xsl:if test="Cond2">
<xsl:variable name="GlobaleVariable" select="2">

It doesn't work with xt. Nor do I find anything in the spec.

Any idea?


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list