W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2017

[Bug 30171] Can a global variable declaration refer to an imported variable it is overriding?

From: <bugzilla@jessica.w3.org>
Date: Sat, 26 Aug 2017 07:46:43 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-30171-523-uqwPq7jZpJ@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=30171

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
I have written a test case for this situation: variable-0120.

I think it was always the WG's intent that this should be an error, and I think
we should issue a clarifying erratum to say so.

(I) In 9.9 para 2, change

A global variable binding element is visible everywhere in the containing
package (including other stylesheet modules) except within the xsl:variable or
xsl:param element itself and any region where it is shadowed by another
variable binding. 

to

A global variable binding element is visible everywhere in the containing
package (including other stylesheet modules) except (a) within the xsl:variable
or xsl:param element itself, (b) within any other global variable declaration
binding a variable with the same name, and (c) within any region where it is
shadowed by another variable binding. 

(II) Also in 9.9, change the definition of "shadows" from

[Definition: A binding shadows another binding if the binding occurs at a point
where the other binding is visible, and the bindings have the same name. ]

to

[Definition: Within a region of the stylesheet where a binding B1 is visible,
B1 shadows another binding B2 having the same name as B1 if B1 occurs at a
point where B2 is visible.]

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Saturday, 26 August 2017 07:46:45 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 26 August 2017 07:46:46 UTC