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

Re: Can XML Schemas do this?


choice relative xml schema
Eric van der Vlist wrote:
> 
> Coincidence, I have written a section about this issue in my (to be
> published soon) book on Relax NG no later than a couple of hours ago
> taking an exact opposite position:
> 
> <extract title="Be liberal on the relative order between children
> elements"/>

I disagree.

> In fact, the main reasons behind this principle are limitations from
> DTDs and more recently from W3C XML Schema but there are strong reasons
> to believe that on the contrary when there is no special reasons,
> relative order between sub elements is a serialization detail and that
> we shouldn't bother users and applications with the unecessary
> constraint of enforcing it. 

You've reversed the issue of bother. When you allow any order you 
"bother" the user with the responsibility of choosing an order. From the 
user's point of view, the order matters unless they are told otherwise. 
When you give them the choice of ordering, they must wonder what is the 
semantic of that choice. As an example, if HTML allowed the HEAD to 
follow the BODY, users might wonder whether that meant something 
different (especially for the BASE element!) than if the HEAD preceded 
the BODY. Because HTML's HEAD always precedes the BODY there is no 
confusion. HEAD means what it means and the order "doesn't matter" (and 
is thus hard-coded).

Plus, this HTML example should also highlight issues about streaming, 
buffering and incremental processing.

  Paul Prescod


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.