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

group-declaration

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
Hi!

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"/>
</group>

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

-- 
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 GMT

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