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 4450 - indistinguishable annotations?
Summary: indistinguishable annotations?
Status: RESOLVED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: SCDS: XML Schema Component Designators (show other bugs)
Version: 1.0/1.1 both
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: Mary Holstege
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 13:28 UTC by C. M. Sperberg-McQueen
Modified: 2009-02-06 17:34 UTC (History)
0 users

See Also:


Attachments

Description C. M. Sperberg-McQueen 2007-04-04 13:28:34 UTC
Section 4.2.10 says in part:

    Annotations cannot be individually addressed: they 
    can only be accessed through wildcarding. Annotation 
    components therefore do not have individually distinguishable 
    canonical schema component paths or designators.

I believe this is true for XSD 1.0, but in XSD 1.1 I thought
the rationale for changing annotations from being sets to
being sequences was precisely (or at least in part) to enable
SCDs to use numeric positional predicates to distinguish them,
so that one could write annotation::*[2] to pick up the 
second one.

Looking at it from this angle, I wonder whether the right answer
to the permanent question "which version of XSD are SCDs to
support?" might be "both -- SCDs should be able to designate
components in either version of XSD, and variations should be
noted where appropriate.  In 4.2.10, for example, the words
just quoted might be preceded by "For XSD 1.0,", and another
sentence or so might be added to say that for XSD 1.1, annotations
are given in sequences, so that predicates may be used to
distinguish them.
Comment 1 C. M. Sperberg-McQueen 2008-07-18 15:46:52 UTC
We discussed this issue on the call of 18 July 2008, and
concluded that we will not try to fix the component model
of 1.0 to address this, and that for 1.1 things actually do work.

Editor to draft appropriate wording.
Comment 2 Mary Holstege 2009-02-06 17:34:50 UTC
Fixed in Last Call draft http://www.w3.org/TR/2008/WD-xmlschema-ref-20081117/