W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2021

union of complex types

From: Mukul Gandhi <mukulg@softwarebytes.org>
Date: Fri, 16 Jul 2021 09:29:40 +0530
Message-ID: <CANGHzgAgXcd5ZXC_smDpHCVusKbu+iYkS1GubTndKvHV7ppqOw@mail.gmail.com>
To: xmlschema-dev@w3.org
Hi all,
    XSD language already provides, for union syntax for the simple types as

<!-- here the XSD language already provides, that Type1 and Type2 can only
be simple types -->
<xs:simpleType name="ST1">
    <xs:union memberTypes="Type1 Type2" />

I propose, a similar new facility for XSD complex types, as follows,

<!-- Type3 and Type4 can be any complex types -->
<xs:element name="X">
         <xs:union memberTypes="Type3 Type4" />

Any thoughts shall be interesting to know.

Mukul Gandhi
Received on Friday, 16 July 2021 07:19:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 16 July 2021 07:19:11 UTC