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 6314 - XPath subset for assertions
Summary: XPath subset for assertions
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.1 only
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2008-12-16 14:28 UTC by Michael Kay
Modified: 2009-01-21 00:30 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2008-12-16 14:28:48 UTC
This is raised in response to some discussion on xml-dev today which points out that the specs are unclear on a significant question.

In the status section of the current published working draft we say:

"The minimal subset of XPath which processors were required to support for assertions has been eliminated; processors must support all of XPath." 

But in section 3.13.1 Assertions we say (and this is still in the status quo):

"Conforming processors may implement all of [XPath 2.0]  or may restrict themselves to the subset described below. Interoperability among all conforming implementations is best achieved by restricting XPath expressions to the subset."

Moreover it's not very clear what "below" refers to. The sentence quoted is followed by some very informally-stated rules like "Path steps are restricted to only match information items within the element being ·assessed·." - is that what is meant? These statements look to me like a non-normative description of a subset, not like a normative definition. The only XPath subsets we define are now in sections 3.11 and 3.12, and they are above rather than "below".

Michael Kay
Comment 1 C. M. Sperberg-McQueen 2009-01-05 15:47:44 UTC
Thank you; good catch.  I think this is an editorial botch:  when we
took away the subset from the Assertions section (and moved it to
Type Alternatives), this material should have been deleted.

Proposal:  delete the paragraph beginning "The {test} property 
specifies an XPath ([XPath 2.0]) expression" and the following
list (which provides an informal characterization of the subset that
used to be here).
Comment 2 David Ezell 2009-01-09 16:47:14 UTC
We adopted the proposal in comment #1.
Comment 3 C. M. Sperberg-McQueen 2009-01-21 00:18:35 UTC
The change suggested in comment 1 is now in the status quo document.

Michael, if you would do the honors, please?