Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Ignore Order while validating XSD

From: "Ramkumar Menon" <ramkumar.menon@-----.--->
To: xmlschema-dev@--.---
Date: 2/23/2006 5:11:00 PM
 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@u... <noah_mendelsohn@u... > 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 XM=
L
> Infoset guarantees that the order of the paragraphs is preserved, if ther=
e
> 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'r=
e
> 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent