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 6451 - schema component positional predicate definition may contain implicit assumptions
Summary: schema component positional predicate definition may contain implicit assumpt...
Status: RESOLVED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: SCDS: XML Schema Component Designators (show other bugs)
Version: 1.1 only
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Mary Holstege
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: decided
Depends on:
Blocks:
 
Reported: 2009-01-19 20:59 UTC by John Arwe
Modified: 2009-12-11 16:58 UTC (History)
1 user (show)

See Also:


Attachments

Description John Arwe 2009-01-19 20:59:17 UTC
Excerpt from 4.3 Interpretation of Schema Component Paths
[Definition: A schema component positional predicate is a condition on the relative position of the component in the sequence of matching components from the schema component path step.] A schema component position predicate is true if the position of the target component in the sequence of components selected by the axis and name test is equal to the positive integer given in the predicate. 

The question is about "position of the target component".  It appears to assume the common (though not universal) 1-origin method of counting used e.g. in XPath 1.0 position().  However, if an implementation chose to number sequence of selected components starting with 0 (for the off-by-one and zero-origin crowds), or indeed any arbitrary number other than 1, I find nothing in the words to say such an implementation has transgressed any normative prescription(s).
Comment 1 Mary Holstege 2009-02-06 17:24:39 UTC
The WG discussed this comment at the telcon 2009-02-06 and agreed to clarify that positional predicates use a 1-based counting, like XPath.

Comment 2 David Ezell 2009-04-24 17:58:10 UTC
On the telcon, the WG discussed the following proposal.
http://www.w3.org/XML/Group/xmlschema-current/SCD/scds-omni20090326-diff.html

And adopted it with one ammendment:
In section 4.2.1 the sentence first sentence now reads:
"The schema component axes defined in this document are considered to be names in no namespace."

This omnibus proposal is intended to close:
bug 6450
bug 6451
bug 6452
Comment 3 John Arwe 2009-04-24 19:46:13 UTC
looks fine, feel free to close this out