W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2006

Re: Ignore Order while validating XSD

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sun, 19 Feb 2006 23:04:36 +0530
Message-ID: <7870f82e0602190934y4d464092u84007618b2ace65a@mail.gmail.com>
To: "Ramkumar Menon" <ramkumar.menon@gmail.com>
Cc: xmlschema-dev@w3.org

I am not sure how difficult it is to support this scenario within XSD.
The XSD validator vendors are the right people to comment on this.

The XML Schema spec says "The choice group element allows only one of
its children to appear in an instance". So I think the XSD validator
should support the example I posted. If you have 10 or more elements,
then definitely the approach I suggested would be cumbersome.

Presently the XML Schema spec says following about the all group "All
the elements in the group may appear once or not at all, and they may
appear in any order". I think its a good idea to remove the
restriction of "once or not at all", and allow any number of
instances.

Regards,
Mukul

On 2/19/06, Ramkumar Menon <ramkumar.menon@gmail.com> wrote:
> Thanks, Mukul.
> Is there any special reason why such a simple scenario is so complex to
> support witihn XSD ? The suggestion below definitely seems good, but a
> schema with 10 or more elements [which is the case with my scenario] looks
> very complex - visually at least - and loses readability.
> rgds,
> Menon
Received on Sunday, 19 February 2006 17:34:39 GMT

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