W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Inconsistent usage of memberType(s) on Union

From: Mark Swinkels <MarkSw@Attachmate.com>
Date: Wed, 11 Oct 2000 09:27:39 -0700
Message-ID: <512C2140816ED111B22E00600857374B01373C2F@EXCH-VAN1>
To: www-xml-schema-comments@w3.org
In the primer there is an example of a union (2.3.2) with an attribute
'memberTypes' that has multiple named types as a value:

<xsd:simpleType name="zipUnion">
  <xsd:union memberTypes="USState listOfMyIntType"/>
</xsd:simpleType>

This conflicts with the definition of union in the specification where the
attribute is called 'memberType' and has QName as its type. The description
of the DataType Definition Schema Component for makes no mention of
'memberType' when describing {base type definition} for union.

The usage in the primer seems more useful although the order between types
referenced in 'memberTypes' and any inline simple types should be explicitly
defined.

-- Mark
Received on Wednesday, 11 October 2000 12:27:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:48 GMT