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:complexType>
   <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.

Regards,

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

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