Re: Enumeration component and restriction

<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 UTC