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 21011 - [XP30] [XQ30] Context position definition
Summary: [XP30] [XQ30] Context position definition
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XPath 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: 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:
Depends on:
Blocks:
 
Reported: 2013-02-15 09:51 UTC by Tim Mills
Modified: 2013-03-19 16:04 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2013-02-15 09:51:24 UTC
The focus is defined as follows:

"The first three components of the dynamic context (context item, context position, and context size) are called the focus of the expression."

The value of the context position includes:

"Definition: ... When the focus is defined, the value of the context position is an integer greater than zero. ..."

Perhaps this should be stated as:

"Definition: ... When the context item is defined, the value of the context position is an integer greater than zero. ..."

to avoid a circular definition of the context position in terms of the focus, of which context position is itself a part.

Also, in the definition of context, size perhaps

"Its value is always an integer greater than zero. "

should be amended to

"When the context item is defined, its value is always an integer greater than zero. "
Comment 1 Jonathan Robie 2013-03-19 16:04:13 UTC
This is editorial. My preference is to change in the other direction, clearly stating that the focus is either defined (as a whole) or not, and adding "when the focus is defined" to each of these components.