This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14370 - [XQuery30] editorial: 4.12 Module Import: variable name clash has no exception for 'private'
Summary: [XQuery30] editorial: 4.12 Module Import: variable name clash has no exceptio...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Working drafts
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 00:53 UTC by Michael Dyck
Modified: 2011-11-18 23:02 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2011-10-04 00:53:45 UTC
4.12 "Module Import" says:
"It is a static error if the expanded QName of a variable declared in an imported module is equal (as defined by the eq operator) to the expanded QName of a variable declared in the importing module or in another imported module (even if the declarations are consistent) [err:XQST0049]."

I believe we intend that the error doesn't occur if the variable(s) declared in the imported module(s) is/are private.

(Note that the appendix blurb for XQST0049 says:
    "It is a static error if two or more variables declared or imported by a
    module have equal expanded QNames (as defined by the eq operator.)"
which avoids this problem because private variables are not "imported".)
Comment 1 Jonathan Robie 2011-11-18 23:02:19 UTC
Nice catch. Fix will appear in the next build.