(Mike Ferenduros) wrote:
> Hi,
>
> I'm working on a schema for a bunch of existing XML files, and I need
> to specify a list of elements that can appear in varying
> quantities...I though xs:all was what I needed, but I just found out
> that maxOccur can only be 0 or 1 in an xs:all list. I'd use
> xs:sequence, but the elements can appear in any order.
>
> Am I missing something? If anyone's got a minute to point me in the
> right direction it'd be greatly appreciated.
Have a look at xs:choice which may serve as a workaround for the
strict constraints of xs:all.
However, watch out when defining content models using xs:choice as
some constraints may be easily broken.
Cheers
Jens
--
(Intentionally left blank.)