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

RE: Inconsistent usage of memberType(s) on Union

From: Biron,Paul V <Paul.V.Biron@kp.org>
Date: Wed, 11 Oct 2000 09:54:00 -0700
Message-Id: <376E771642C1D2118DC300805FEAAF4386DF1A@pars-exch-1.ca.kp.org>
To: "'Mark Swinkels'" <MarkSw@Attachmate.com>, "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
> -----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 GMT

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