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: <5.1.0.14.1.20020709111105.02875948@localhost>
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?


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

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

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

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


Thank you,
miki


-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Miki Kasahara
http://jp.getronics.com/
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