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

Re: XSLT 3.0: Question about the rules for handling d

Subject: Re: XSLT 3.0: Question about the rules for handling duplicate declarations of static variables
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 23 Nov 2014 22:54:57 -0000
Re:  XSLT 3.0: Question about the rules for handling  d
On 23 Nov 2014, at 17:45, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:

>> The intended meaning of the phrase is "The value of the variable must not
be a sequence one of whose items is a function", or perhaps more formally, if
$V is the value of the variable then the expression
>>
>> some $v in $V satisfies $v instance of function(*)
>>
>> must be false.
>>
>> This is because it is not possible to determine whether two functions are
"the same"
>>
>
>
> Yes, makes perfect sense now.
>
> And this limitation is only for the case of name conflict with another
> static variable that precedes the current static variable in
> stylesheet-tree order, otherwise, if there is no such conflict, the
> value of a static variable/parameter is allowed to be a sequence
> containing a function, is this correct?
>

Correct, this constraint applies only when you have two variables with the
same name, so it's all about edge cases. (In real life, it's most likely to
happen if you import the same module twice. In this case there will be two
declarations and they will typically have the same value. But if the value is
a function, then we can't tell that it's the same value).

Michael Kay
Saxonica

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.