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

min/max occurs facets on choice?

From: Ed Day <eday@obj-sys.com>
Date: Fri, 13 Feb 2004 13:02:06 -0500
Message-ID: <09e901c3f25b$7e0ea2e0$4800000a@objsys1>
To: <xmlschema-dev@w3.org>

We have a question regarding the use of min/max occurs facet on a choice
construct.  The following would seem to be ambiguous:

   <xs:choice maxOccurs="unbounded">
    <xs:element name="x" maxOccurs="10">

How does one know if the repetition is on the choice or the element inside?
This being the case, how is the inner maxOccurs enforced?  If it is valid,
what facet is used (can only 10 x's be present or an unbounded number)?

We could not find anything in the standards indicating this is invalid and
our test schema was declared valid using XSV, so I assume it is OK.  But it
would appear to be non-deterministic.


Ed Day
Objective Systems, Inc.
Received on Friday, 13 February 2004 12:50:51 UTC

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