This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Could I define a global XSL variable ?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Could I define a global XSL variable ?
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 31 Jan 2001 09:43:39 GMT
- References: <F31JhKPc99ir3wSimD300000a24@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> please do You know if the XSL document can define and handle global
> variables ?
Yes (as you could discover by taking a copy of the XSLT spec and search
for "global").
Global variables are defined by xsl:variable just as for variables that
are local to a template body. The xsl:variable in the global case is at
the "top level2 ie a child of xsl:template.
Such variables may be used in all templates in the stylesheet (although
temnplates may not of course change the value of the variable.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list