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 15789 - [XQuery30] Declaring a context item does not consistently set the focus
Summary: [XQuery30] Declaring a context item does not consistently set the focus
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 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
: 16035 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-30 11:17 UTC by Ghislain Fourny
Modified: 2012-02-28 15:26 UTC (History)
2 users (show)

See Also:


Attachments

Description Ghislain Fourny 2012-01-30 11:17:40 UTC
The focus must fulfill consistency rules as stated in the description of the dynamic context (2.1.2) and in paragraph C.2. In particular, the context size and the context position must be defined and greater than zero if the context item is defined.

I suspect that section 4.17 (Context Item Declaration) may render the focus inconsistent, by setting the context item without setting the context position and size appropriately.
Comment 1 Michael Kay 2012-02-06 17:06:05 UTC
XSLT handles this by defining the term "singleton focus". A singleton focus set to N is defined to have context item = N, position = 1, size = 1. Constructs such as the context item declaration are defined to create a singleton focus set to the selected item.
Comment 2 Jonathan Robie 2012-02-14 12:54:27 UTC
The Working Group agrees to adopt the solution in Comment #1 (with editorial discretion).
Comment 3 Ghislain Fourny 2012-02-28 15:26:46 UTC
*** Bug 16035 has been marked as a duplicate of this bug. ***