W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2223] R-231: Enumeration restrictions are unclear

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 19:23:46 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EFcrC-0001OP-Ml@wiggum.w3.org>


           Summary: R-231: Enumeration restrictions are unclear
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org

The prose in parts 1 and 2 wrt the components which result from a pair of type 
definitions such as: 


<xs:simpleType name="A">
 <xs:restriction base="xs:token">
  <xs:enumeration value="x"/>
  <xs:enumeration value="y"/>
  <xs:enumeration value="z"/>

<xs:simpleType name="B">
 <xs:restriction base="A">
  <xs:enumeration value="y"/>

is not clear at all. 

Does the {facets} property of B contain: 

1 - One enumeration component whose {value} is {y}? 
2 - One enumeration component whose {value} is {x, y, z}? 
3 - Two enumeration components whose {value}s are {y} and {x, y, z}? 

This need to be cleaned up once and for all. 

Received on Wednesday, 14 September 2005 19:23:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC