W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2005

Empty choice in a group ?

From: Bruno Chatel <bcha@chadocs.net>
Date: Fri, 7 Jan 2005 17:27:20 +0100
Message-ID: <00bd01c4f4d5$c43e11b0$0600a8c0@chadocshome.com>
To: <xmlschema-dev@w3.org>
Cc: "Bruno Chatel" <bcha@chadocs.net>

Hi,

Is the following  allowed :

<xs:group name="empty.Grp">
  <xs:choice/>
 </xs:group>

I do not have any validation problem with xsv, sqc, xsdvalid, ect...  and do not see any information
in the specification...
But msxml detect an error :
empty.xsd#/schema[1]/group[position() = 1 and @name = 'empty.Grp']/choice[1] Empty can be satisfied only if {minOccurs = 0}. 

What is the correct answer ? 

Thanks in advance

-- bruno -- 
Bruno Chatel
Tel : (+33) (0)4 96 11 14 57
bcha@chadocs.com
--------------------------------------
Received on Friday, 7 January 2005 16:23:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:49 GMT