Re: Rationale for restricted uses of "all"

Hi Henry,

> The stricter interpretation is that the same-named elements must occur
> adjacent to one another, so the above would be invalid, but e.g.
>
>  <C/><C/><B/>
> or
>  <B/><C/><C/>
>
> would be OK.

Couldn't you achieve that strictness by defining xs:all to (a) accept
its contents in any order and (b) contain other model groups? If
someone wanted all the Cs to be grouped together, they could do:

  <xs:all>
    <xs:element ref="B" />
    <xs:sequence>
      <xs:element ref="C" maxOccurs="5" />
    </xs:sequence>
  </xs:all>

Or is the problem that the sequence in the above would be ignored
as "pointless" according to the current rules?

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Wednesday, 21 November 2001 07:39:40 UTC