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

union of complex types

From: Mukul Gandhi <mukulg@softwarebytes.org>
Date: Wed, 14 Jul 2021 17:25:14 +0530
Message-ID: <CANGHzgBDxcLo8cNxA+rj20qeGexor=h4B1GJWqX=EAMmeAT4ow@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:03 UTC