W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2002

Re: Multiple Type definition

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Wed, 22 May 2002 09:31:34 +1000
Message-ID: <3CEAD8D6.8BC0FCF6@allette.com.au>
To: Jingkun Hu <hujingkun@yahoo.com>
CC: xmlschema-dev@w3c.org
Hi,

> My question is if I can assign multiple types to a
> sequence of elements with same element name. The
> following is a block of an example:
>
>            <xsd:complexType name="procedure_report">
>                 <xsd:sequence>
>                         <xsd:element name="item" type="item_1"
> minOccurs="0"/>
>                         <xsd:element name="item" type="item_2"/>
>                         <xsd:element name="item" type="item_3"
> maxOccurs="unbounded"/>
>                         <xsd:element name="item" type="item_4"
> minOccurs="0"/>
>                 </xsd:sequence>
>         </xsd:complexType>
>
> here, item_1, .., item_4 can be simpleType or
> complexType.

</snip>

> I'm wondering if multiple type definition for a single
> element is allowed in the current XML Schema
> specification. If yes, which tools support it?

No, you can't do this with XML Schema so no tools should support this.

Cheers,
/Eddie
Received on Tuesday, 21 May 2002 19:18:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC