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 5004 - 2007-08-30 WD: inconsistency between type keybase of S4S and Section 3.11.3 (icd representation)
Summary: 2007-08-30 WD: inconsistency between type keybase of S4S and Section 3.11.3 (...
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.1 only
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard: S4SD cluster
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2007-09-04 14:53 UTC by Paolo Marinelli
Modified: 2008-02-09 09:13 UTC (History)
0 users

See Also:


Attachments

Description Paolo Marinelli 2007-09-04 14:53:31 UTC
Section 3.11.3 of 2007-08-30 XSDL 1.1 Working Draft states that every <key>, <keyref>, and <unique> element information items of a schema document, must satisfy (among the others) the following condition:

"3 If ref is present, then only id and <annotation> are allowed to appear together with ref."

Such constraint is incompatible with the content model of type keybase defined within the Schema for Schema documents: 

<xs:complexType name="keybase">
 <xs:complexContent>
  <xs:extension base="xs:annotated">
   <xs:sequence>
    <xs:element ref="xs:selector"/>
    <xs:element ref="xs:field" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
   <xs:attribute name="name" type="xs:NCName"/>
   <xs:attribute name="ref" type="xs:QName"/>
   <xs:attribute name="xpathDefaultNamespace" type="xs:xpathDefaultNamespace"/>
  </xs:extension>
 </xs:complexContent>
</xs:complexType>
 
which requires the presence of both <selector> and <field>, regardless of the presence of the attribute "ref".
Comment 1 C. M. Sperberg-McQueen 2008-02-04 16:17:23 UTC
In an effort to make better use of Bugzilla, we are going to use the
'severity' field to classify issues by perceived difficulty.  This 
bug is getting severity=minor to reflect the existing whiteboard note
'easy'. 
Comment 2 C. M. Sperberg-McQueen 2008-02-08 02:19:48 UTC
A wording proposal including changes for this issue went to the WG
on 7 February 2008:

  http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.consent.200801.html#composition

(member-only link).
Comment 3 C. M. Sperberg-McQueen 2008-02-08 19:56:01 UTC
The 'Structures Omnibus 1' proposal mentioned in an earlier comment
was adopted by the XML Schema Working Group today.

http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.consent.200801.html (member-only link)

The XML Schema WG believes that the changes adopted today resolve this
issue fully.  I'm changing its status accordingly.

The change in status should cause email to be sent to the originator of
this issue, to whom the following request is addressed.

Please review the changes adopted and let us know if you agree with this resolution of your issue, by adding a comment to the issue record and changing the Status of the issue to Closed. Or, if you do not agree with this resolution, please add a comment explaining why. If you wish to appeal the WG's decision to the Director, then also change the Status of the record to Reopened. If you wish to record your dissent, but do not wish to appeal the decision to the Director, then change the Status of the record to Closed. If we do not hear from you in the next two weeks, we will assume you agree with the WG decision.
Comment 4 Paolo Marinelli 2008-02-09 09:13:38 UTC
I reviewed the resolution, and I agree with it. I am going to close the issue.

Thank you. 

Paolo