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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2223

           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: 

Example:

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

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

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. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JulSep/0060.html

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