This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Global Variables (use of)
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Global Variables (use of)
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 21 Jul 2000 18:42:54 +0100
- Reply-To: xsl-list at mulberrytech dot com
> <xsl:variable name="sectnum"><xsl:value-of
> select="child::title/attribute::id"/></xsl:variable>
>
> $num should be processed as a global variable (my
> understanding through the
> reading I have done).
>
I don't quite understand your question, but note that this global variable
has a single constant value: the id attribute of the title element that is
the outermost element of the document. The value doesn't depend on whatever
happens to be the current node at the time the variable is referenced.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list