W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2003

max occurs

From: Alessandro Triglia <sandro@mclink.it>
Date: Tue, 18 Nov 2003 01:09:00 -0500
To: "[Public XML Schema-DEV]" <xmlschema-dev@w3.org>, "[XML Schema Comments]" <www-xml-schema-comments@w3.org>
Message-ID: <001301c3ad9a$767d0720$e100a8c0@aldebaran>

Hi

I noticed a double inconsistency in Part 1 regarding the {max occurs} of a particle.


-----------------------------
3.9.6 Constraints on Particle Schema Components

All particles (see Particles (§3.9)) must satisfy the following constraints.
Schema Component Constraint: Particle Correct

All of the following must be true:
1 [...]
2 If {max occurs} is not unbounded, that is, it has a numeric value, then all of the following must be true:
2.1 [...]
2.2 {max occurs} must be greater than or equal to 1.
-----------------------------


so {max occurs} cannot be 0

but:


-----------------------------
3.9.1 The Particle Schema Component

The particle schema component has the following properties:

Schema Component: Particle

{min occurs} [...]
{max occurs} Either a non-negative integer or unbounded.
{term} [...]
-----------------------------


which should have been, "Either a positive integer or unbounded"

and:


-----------------------------
E1-26 Clarification

See R-113 pfiall, "A question about all content models" and pfiallGroup, "minOccurs=0 on 'all'".

In §3.8.6 Constraints on Model Group Schema Components, changes as follows:
Schema Component Constraint: All Group Limited

When a model group has {compositor} all all of the following must be true:
1  [...]
2 The {max occurs} of all the particles in the {particles} of the group must be 0 or 1. 
-----------------------------


which should have been, "The {max occurs} of all the particles in the {particles} of the model group must be 1."

Alessandro Triglia
OSS Nokalva
Received on Tuesday, 18 November 2003 01:09:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:03 UTC