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 26467 - [xslt 3.0] Ambiguity for xsl:global-context-item
Summary: [xslt 3.0] Ambiguity for xsl:global-context-item
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC All
: 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-30 10:16 UTC by Michael Kay
Modified: 2014-07-30 14:30 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2014-07-30 10:16:22 UTC
3.6.5 says

A type error is signaled if the supplied global context item does not match the required type declared in the xsl:global-context-item declaration of any package. 

This is ambiguous. The intent is that the type of the supplied item should match every type declaration, not that it is sufficient to match one of them.

Suggested rephrasing:

A type error is signaled if any package contains an xsl:global-context-item that declares a required type which does not match the supplied global context item.
Comment 1 Michael Kay 2014-07-30 14:30:00 UTC
Fixed editorially.