W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

Re: Schema limits and ordering

From: <noah_mendelsohn@us.ibm.com>
Date: Mon, 7 Jun 2004 10:26:58 -0400
To: Stuart Gilbert <Stu@Better.Domain.Name>
Cc: xmlschema-dev@w3.org
Message-ID: <OF8DE5A046.B314BFBD-ON85256EAC.004F57D8@lotus.com>

What's confusing to me is not why one would want multiple elements mixed 
independent of order, but why one would want bounded maxOccurs for each by 
name.  In many such cases, the maxOccurs is approximating some deeper 
semantic which might better be captured with more structured markup. 
Obviously, if the maxOccurs need not be bounded, then:

        <choice maxOccurs="unbounded">
                <element ref="n:a" />
                <element ref="n:b" />

will do nicely.

Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
Received on Monday, 7 June 2004 10:30:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:22 UTC