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

Restrictions on xs:all

From: Michael Kay <mhk@mhk.me.uk>
Date: Wed, 28 Jan 2004 11:17:53 -0000
To: <xmlschema-dev@w3.org>
Message-ID: <010001c3e590$5fbb2f20$6401a8c0@pcukmka>

The rules make it pretty clear that you can't have an xs:sequence or
xs:choice containing an xs:all, so the following is not allowed:

<xs:sequence>
  <xs:element ref="a"/>
  <xs:all>
    <xs:element ref="b"/>
    <xs:element ref="c"/>
  </xs:all>
</xs:sequence>

Is there a rule that bans the equivalent:

<xs:sequence>
  <xs:element ref="a"/>
  <xs:group ref="g"/>
</xs:sequence>

<xs:group name="g">
  <xs:all>
    <xs:element ref="b"/>
    <xs:element ref="c"/>
  </xs:all>
</xs:group>

If there is, then I can't find it - which of course is no evidence at
all for its absence!

Similarly, is there a rule that prevents one appending an <xs:all> to
the content model of a complex type using derivation by extension?

Michael Kay
Received on Wednesday, 28 January 2004 06:17:36 GMT

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