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

RE: Is minOccurs>maxOccurs Allowed?

From: Dwivedi , Ajay Kumar <AjayKumar.Dwivedi@dresdner-bank.com>
Date: Thu, 13 Jun 2002 15:18:54 +0100
Message-ID: <81D792FDA471D21190DB0008C7A41A0601ED5C2C@kbi01ea0.wwz1me.mail.dresdner.net>
To: "'Jeni Tennison'" <jeni@jenitennison.com>, xmlschema-dev@w3.org

Thanks Jeni,

>   2 If {max occurs} is not unbounded, that is, it has a numeric value,
>     then all of the following must be true:
>     2.1 {min occurs} must not be greater than {max occurs}.
>     2.2 {max occurs} must be greater than or equal to 1.
	
However, the Part 1 says :
if the <element> element information item has <complexType> or <group> as an
ancestor and the ref [attribute] is absent, the corresponding schema
components are as follows (unless minOccurs=maxOccurs=0, in which case the
item corresponds to no component at all): (just above
http://www.w3.org/TR/xmlschema-1/#Particle_details)

Also, shouldn't the maxOccurs be defined as (positiveInteger | unbounded)
since the above requirements apply to all particles.


Thanks,
Ajay
Received on Thursday, 13 June 2002 10:32:09 GMT

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