[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
mukul gandhi

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.