W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

valid maxOccurs values

From: Weber, Heiko <Heiko.Weber@softwareag.com>
Date: Wed, 31 Jan 2001 14:14:07 +0100
Message-ID: <C23163F98473D311874C0008C7E62107048E5E0B@daemsg02.software-ag.de>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hello,

as I was reading through the XML Schema 1 Specification I found
a section which said:

"If maxOccurs is not unbounded, that is, it has a numeric value, then
maxOccurs must [be] greater than or equal to 1"

on the other hand, I found "minOccurs=maxOccurs=0", for example:

"otherwise 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):"

So, can maxOccurs take the value 0 or not?  I'm a little confused here.
Am I misunderstanding something?

thanks,
    Heiko Weber

> --- --- --- --- --- --- --- --- --- --- ---
> 
> Software AG Germany    
DBMS Open Systems Development (XML)
> Uhlandstrasse 12
> D-64297  Darmstadt
> Germany
> Email:  mailto:Heiko.Weber@softwareag.com
> Web:     http://www.softwareag.com
> 
> 
Received on Wednesday, 31 January 2001 08:14:15 GMT

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