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.:

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

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:

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

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

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

Do I have this right?

David C. Fallside, IBM
Ext Ph: 530.477.7169
Int   Ph: 544.9665
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