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" />
        </choice>

will do nicely.

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
Received on Monday, 7 June 2004 10:30:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT