|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: all 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








