Re: rollback, underministic, unique?

Hi Stanley,

> Is the following "choice" group valid?

No.

> Does it violate "Unique Particle Attribution" constraint (3.8.6)?

Yes. When the validator comes across an 'a' element, it can't tell
whether the 'a' element should be validated against the one from the
first sequence, the second sequence or the third sequence in the
choice.

Of course it's easy to make it into one that *is* valid:

  <xs:sequence>
    <xs:element ref="my:a" />
    <xs:element ref="my:b" />
    <xs:choice>
      <xs:element ref="my:c" />
      <xs:element ref="my:d" />
      <xs:element ref="my:e" />
    </xs:choice>
  </xs:sequence>

Cheers,

Jeni

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

Received on Saturday, 8 December 2001 05:17:40 UTC