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:simpleType name = "B">
  <xs:restriction base = "A">
   <xs:enumeration value = "blabla"/>

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

Received on Thursday, 9 October 2003 08:34:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:03 UTC