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 6450 - schema component positional predicate text inconsistent with EBNF
Summary: schema component positional predicate text inconsistent with EBNF
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
: P4 normal
Target Milestone: ---
Assignee: Mary Holstege
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: decided
Depends on:
Blocks:
 
Reported: 2009-01-19 20:54 UTC by John Arwe
Modified: 2009-12-11 16:57 UTC (History)
1 user (show)

See Also:


Attachments

Description John Arwe 2009-01-19 20:54:22 UTC
Excerpt from 4.3 Interpretation of Schema Component Paths
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 EBNF allows 0 (which is not positive IIRC):
[24]   	Predicate	   ::=   	'[' [0-9]+ ']'

You might want '[' [1-9][0-9]* ']' although I realize that disallows leading zeros.
Comment 1 Mary Holstege 2009-02-06 17:29:04 UTC
The WG discussed this comment at the telcon 2009-02-06 and agreed the EBNF could be made more precise:  '[' [0]*[1-9][0-9]* ']'
Comment 2 David Ezell 2009-04-24 17:57:48 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:28 UTC
looks fine, feel free to close this out