W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

RE: Can I choose one simpleType in one element?

From: Kasahara, Miki <Miki.Kasahara@getronics.com>
Date: Tue, 09 Jul 2002 11:11:08 -0600
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

Thank you very much!!
It is work!

I use <xs:group> for choosing one complexType in one element. see  (ex 1).
Do you have any good idea?

Also If you know how to choose one simpleType or complexType in one element?

<!-- A element -->
<xs:element name="A" type="A"/>

<!-- A chooseing element -->
<xs:complexType name="A">
       <xs:group ref="A1"/>
       <xs:group ref="A2"/>

<!-- A1 group -->
<xs:group name="A1">

<!-- A2 group -->
<xs:group name="A2"/>

Thank you,

Miki Kasahara
Professional ServiceDivision
e-Solutions Development Department
Getronics Japan, LTD
Received on Tuesday, 9 July 2002 13:16:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT