W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2000

Anonymous group?

From: Jasmin Wason <jlw98r@ecs.soton.ac.uk>
Date: Wed, 06 Dec 2000 19:59:14 +0000
Message-ID: <3A2E9A92.EE67E6AC@ecs.soton.ac.uk>
To: xmlschema-dev@w3.org
Is it alright to have a group element with no name in a Schema? 

E.g.

<complexType name="data">
 <sequence>
  <element name="number" type="integer"/>
   <group minOccurs="0">
    <sequence>
      <element name="anotherNumber" type="integer"/>
    ...
   </group>
...

The name and ref attributes look optional in [1] but XSV gives 2
errors,  Invalid: group with no name or ref and Invalid: internal group
must have ref.

Thanks,

Jasmin Wason

[1]
http://www.w3.org/TR/2000/CR-xmlschema-1-20001024/#declare-namedModelGroup
Received on Wednesday, 6 December 2000 15:00:27 GMT

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