- From: Eddie Robertsson <erobertsson@allette.com.au>
- Date: Wed, 22 May 2002 09:31:34 +1000
- 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