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

Ignore Order while validating XSD

From: Ramkumar Menon <ramkumar.menon@gmail.com>
Date: Thu, 23 Feb 2006 11:53:01 +0530
Message-ID: <22bb8a4e0602222223m59a3edcehefff664d9b3eac82@mail.gmail.com>
To: xmlschema-dev@w3.org
validating atom 0.3 xsd
 HI Noah,

Thanks for the response. I completely agree with you.
But is there a possiblity of revisiting the "xsd:all" semantics in the near
future.
i.e. either nuking it, and thus enforcing order always.
     OR
     removing just the restriction on the member cardinalities in the "all"
compositor.

rgds,
Menon


 On 2/23/06, noah_mendelsohn@us.ibm.com <noah_mendelsohn@us.ibm.com > wrote:
>
> Ramakumar Menon asks:
>
> > Apart from being a best practice, cd somebody tell me atleast five
> advantages of enforcing order of elements within an XSD.
>
> Sure.  XML is intended for document scenarios as well as data.  Consider:
>
> <element name="chapter">
>        <sequence>
>                <element ref="chapterHeading"/>
>                <element ref="paragraph" maxOccurs="unbounded"/>
>                <element ref="chapterFootnotes"/>
>        </sequence>
> </element>
>
> It may be very important, or at least semantically significant, that the
> chapterHeading comes ahead of the paragraphs, and that the
> chapterFootnotes follow.  Furthermore, it's clearly important that the XML
> Infoset guarantees that the order of the paragraphs is preserved, if there
> is more than one paragraph.
>
> Keep in mind that XML Schema is made for documents and data together, and
> that is part of its power.  That may seem like excess complexity if you're
> just defining lists of part numbers, but then you may one day find that
> you want to include XHTML descriptions for those parts, and suddenly the
> fact that order is significant starts to make sense.
>
> --------------------------------------
> Noah Mendelsohn
> IBM Corporation
> One Rogers Street
> Cambridge, MA 02142
> 1-617-693-4036
> --------------------------------------
>
>
>
>
>


--
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!

-Ramkumar Menon
A typical Macroprocessor


--
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!

-Ramkumar Menon
A typical Macroprocessor
Received on Thursday, 23 February 2006 06:23:09 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.