W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2000


From: Volker Renneberg <volker.renneberg@acm.org>
Date: Thu, 17 Feb 2000 16:36:00 -0500
Message-ID: <38AC69C0.B82DB06C@acm.org>
To: www-xml-schema-comments@w3.org

I've a question about the group definition for elements. Let's say I've
two types A and B and the following group:

<group order="choice">
  <element name="c" type="A"/>
  <element name="c" type="B"/>

In the final XML document, do I have to add the "xsi:type" attribute to
the "c"-element? Or could I leave them out. Not checking the type of "c"
results in an ambiguous choice.


Volker Renneberg              http://workaholic.studfb.unibw-muenchen.de
Bell Laboratories, Lucent Technologies    mailto:volker.renneberg@acm.de
Room 2c-402, 600 Mountain-Avenue
Murray Hill, NJ 07974, USA
Phone*work: +1-908-582-2430  home: +1-908-273-3876
Fax  *work: +1-908-582-5857
Received on Thursday, 17 February 2000 16:36:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:46 UTC