Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] all group composition

From: Bob Foster <bob@------.--->
To: Carlos Pita <carlosjosepita@-----.---.-->
Date: 4/1/2005 6:58:00 PM
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


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