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

referencing types in unions

From: David Fallside/Santa Teresa/IBM <fallside@us.ibm.com>
Date: Sun, 10 Sep 2000 12:37:00 -0700
To: www-xml-schema-comments@w3.org
Message-ID: <OFA3779A6E.8F6062F9-ON88256956.006AAB16@LocalDomain>

When I define a new list type, it appears that I can reference an existing
type directly, e.g.:

<simpleType>
  <list type="FooType">
    <length value="4"/>
  </list>
</simpleType>

However, when I define a new union type, it appears that  I cannot
reference existing types.
I would like to be able to write something like:

<simpleType>
  <union type="FooType   BarType    BazType">
    <!-- facets -->
  </union>
</simpleType>

However, the closest I seem to come to this is assembling anonymous type
definitions
like:

<simpleType>
  <union>
    <simpleType>
        <restriction base="..."/>
    </simpleType>
    <simpleType>
        <list type="..."/>
    </simpleType>
  </union>
</simpleType>

Do I have this right?
Thanks,
David

............................................
David C. Fallside, IBM
Ext Ph: 530.477.7169
Int   Ph: 544.9665
fallside@us.ibm.com
Received on Sunday, 10 September 2000 22:50:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:53 UTC