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

Re: all group composition

  • To: Carlos Pita <carlosjosepita@y...>
  • Subject: Re: all group composition
  • From: Bob Foster <bob@o...>
  • Date: Fri, 01 Apr 2005 10:57:40 -0800
  • Cc: xml-dev@l...
  • In-reply-to: <200503311152.28769.carlosjosepita@y...>
  • References: <200503311152.28769.carlosjosepita@y...>
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217

group composition
Carlos Pita wrote:
 > But if one of the groups is a <sequence>
 > it will be forcing an undesired ordering
 > on its members.

It's all in how you think about it. If the order in a group doesn't 
matter, then it doesn't matter that you enforce a particular one. If the 
order in a group does matter (has some semantic significance) then it 
matters very much that you don't enforce any.

Many people come to the table thinking, "There's no reason why element a 
has to be written before element b, so I should use 'all'." But that's 
not actually the primary use case for all. It is for situations where 
user-specified order does matter and you wish to enforce an upper bound 
on the number of occurrences.

It's actually not a favor to users to allow unconstrained order where 
order doesn't matter, e.g., in 'data records'. It makes them harder for 
humans to read when they are written every which way, it makes them 
somewhat harder for programs to read/validate and it encourages users to 
think that order _does_ matter, e.g., if a child is specified before a 
spouse it means the primary beneficiary of an insurance policy should be 
the child rather than the spouse. Humans are pattern-seekers, especially 
good at finding patterns where there are none. E.g., only if it isn't 
possible to change the relative order of spouse and child will certain 
people realize that, therefore, the order must have nothing to do with 
beneficiary and seek the correct way to specify it.

Bob Foster


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.