W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2003

Re: Enumeration component and restriction

From: Nikola <nikola.stojanovic@acm.org>
Date: Thu, 9 Oct 2003 08:33:47 -0400
Message-ID: <042401c38e61$bfc422e0$4502a8c0@kubura>
To: <xmlschema-dev@w3.org>
<Henry S. Thompson>
Yeah, the two parts of the REC are in conflict here.  I'll raise an
official issue.

The intended semantics are clear (it should be a restriction, after
all), but the prose gets pretty confused.
</Henry S. Thompson>

Could you explain intended restriction semantics in a litlle bit different example. Here is the schema:

 <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 = "blabla"/>
  </xs:restriction>
 </xs:simpleType>

Is this valid? XSV (2.5-2 of 2003/07/09) reports no schema errors.

TIA,
Nikola
Received on Thursday, 9 October 2003 08:34:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:40 GMT