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

LC-209 Open Enumerations (XForms comment on XML Schema Last-Call Working Draft)

From: Martin Gudgin <marting@develop.com>
Date: Thu, 21 Sep 2000 11:31:41 -0400
Message-ID: <05cd01c023e1$0d9a1770$13ca3ed0@greyarea>
To: "Schema Comments" <www-xml-schema-comments@w3.org>, <w3c-forms@w3.org>
Dear XForms Working Group

The W3C XML Schema Working Group has spent the last several months
working through the comments received from the public on the last-call
draft of the XML Schema specification.  We thank you for the comments
you made on our specification during our last-call comment period, and
want to make sure you know that all comments received during the
last-call comment period have been recorded in our last-call issues
list (http://www.w3.org/2000/05/12-xmlschema-lcissues).

Among other issues, you raised the point registered as issue LC-209, Open

The Schema Working Group believes that the support for union types in the
simpleType construct addresses this issue allowing for example the following
type definitions;

<!-- Enumeration of all US state abbreviations -->
<xsd:simpleType name="US-State" base="xsd:string">
  <xsd:enumeration value="AK"/>
  <xsd:enumeration value="AL"/>
  <xsd:enumeration value="AR"/>
  <!-- and so on ... -->

<!-- string of exactly 2 characters -->
<xsd:simpleType name='stringwithtwochars'>
  <xsd:length value='2'/>

<!-- union of the above two type -->
<xsd:simpleType name='WeMightNeedMoreUSStates'>
  <xsd:union memberTypes='US-State stringwithtwochars' />

which would allow instances to contain any one of the existing US State
abbeviations ( as defined in the type US-State ) or any other string values
of exactly two characters. For example the following would all be valid
instances of the type 'WeMightNeedMoreUSStates'


It would be helpful to us to know whether you are satisfied with the
decision taken by the WG on this issue, or wish your dissent from the
WG's decision to be recorded for consideration by the Director of
the W3C.


Martin Gudgin
XML Schema Working Group
Received on Thursday, 21 September 2000 11:49:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:48 UTC