This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: [exsl] Global variables in functions
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] [exsl] Global variables in functions
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 28 Feb 2001 03:44:55 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Jeni wrote:
>
> "There are two solutions that I can see:
>
> 1. ban using global variables in functions altogether
>
> 2. ban using global variables in functions that are
> called from the
> 'match' attribute on xsl:template or the 'match' or
> 'use'
> attributes of xsl:key"
>
References to global variables in a function called from these contexts (or
from the select expression of another global variable) are no more
troublesome than references to global variables in a template called from
similar contexts.
Circular references can already occur, despite the restrictions on variables
in match attributes, and the processor has to cope with them already.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list