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

enumeration restrictions are unclear at best

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Wed, 27 Aug 2003 15:07:43 +0100
To: www-xml-schema-comments@w3.org
Message-ID: <f5b1xv719e8.fsf@erasmus.inf.ed.ac.uk>

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.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Wednesday, 27 August 2003 10:11:46 UTC

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