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 26422 - [XSLT30] (editorial) error XTSE0630 only applies to packages
Summary: [XSLT30] (editorial) error XTSE0630 only applies to packages
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-23 22:08 UTC by Abel Braaksma
Modified: 2014-08-02 14:07 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2014-07-23 22:08:06 UTC
(Encountered this while trying to untangle the rules on static variables and parameters)

The current wording of this error is:

"[ERR XTSE0630] It is a static error if a package contains more than one non-hidden binding of a global variable with the same name and same import precedence, unless it also contains another binding with the same name and higher import precedence."

I think it is the effect of the resolution to bug 24763 that it now refers to packages and not stylesheets. However, package itself is defined in terms of xsl:package, so it seems, or at least I read it, as if an xsl:stylesheet without an xsl:package parent does not apply.

Perhaps we should update the definition of "package", or we should change the text to "if a package or stylesheet...".

Note also, for instance, that the sentence prior to this error talks about a stylesheet, not a package, while I think it applies to both package and stylesheets, there may be more such sentences:

"If a stylesheet contains more than one binding for a global variable of a particular name, then the binding with the highest import precedence is used."
Comment 1 Michael Kay 2014-07-31 15:24:11 UTC
Resolved to update the definition of "package" to make it clear that the term includes an implicit package constructed when there is no explicit xsl:package element.
Comment 2 Michael Kay 2014-08-02 14:07:54 UTC
Changes have been applied.