[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [exsl] Global variables in functions

Subject: Re: [exsl] Global variables in functions
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Feb 2001 08:47:29 +0000
global variables in functions
Hi Mike,

>> 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.

I'm happy to hear that it's not a problem; perhaps the restriction on
variable references in the attributes mentioned above could be lifted
in XSLT 1.1 or 2.0 - it would make some aspects of life a little
easier.

But I'm not sure I follow your argument. A template can't be called
from the 'match' attribute of xsl:template or the 'match' or 'use'
attributes of xsl:key.  So that would never be a problem anyway.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.