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

Is minOccurs>maxOccurs Allowed?

From: Dwivedi , Ajay Kumar <AjayKumar.Dwivedi@dresdner-bank.com>
Date: Thu, 13 Jun 2002 14:19:58 +0100
Message-ID: <81D792FDA471D21190DB0008C7A41A0601ED5C2B@kbi01ea0.wwz1me.mail.dresdner.net>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hi all,
	Is a particle with minOccurs > maxOccurs valid?
For example, if maxOccurs="0" and minOccurs is not specified,
(and thus defaults to 1), is the shcema valid?	

	<xsd:complexType name="bar">
		<xsd:sequence>
			<xsd:element name="name" maxOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

Or should a processor automatically decide to reset minOccurs to 0
in this case?

Thanks,
Ajay
Received on Thursday, 13 June 2002 09:20:47 GMT

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