Restrictions on xs:all

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 UTC