RE: Inconsistent usage of memberType(s) on Union

> -----Original Message-----
> From:	Mark Swinkels [SMTP:MarkSw@Attachmate.com]
> Sent:	Wednesday, October 11, 2000 9:28 AM
> To:	www-xml-schema-comments@w3.org
> Subject:	Inconsistent usage of memberType(s) on Union
> 
> 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.
> 
I appologize for the several typos in the Sept 22 draft in section 5.1 of
the datatypes spec [1] with respect to the content models of particular
elements used in simpleType definitions and the datatype component
description had not been brought up to date with other WG decisions when
that draft was published (hence, no mention of memberTypes for unions and
itemType for lists).

However, if you consult the schema for datatypes in Appendix A [2], you'll
see that the example in the primer is correct.

pvb

References
[1] http://www.w3.org/TR/2000/WD-xmlschema-2-20000922/#xr-defn
[2] http://www.w3.org/TR/2000/WD-xmlschema-2-20000922/#schema

Received on Wednesday, 11 October 2000 13:13:19 UTC