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

RE: question about Schema Component Constraint: Particle Valid (Extension)

From: Michael Kay <mike@saxonica.com>
Date: Tue, 4 Nov 2008 14:51:01 -0000
To: "'Tobias Koenig'" <tobias.koenig@trolltech.com>, <xmlschema-dev@w3.org>
Message-ID: <E4C37D1D3062425380CEABB2024448C6@Sealion>

> 
> E's {min occurs}={max occurs}=1 and its {term} is a sequence 
> group whose {particles}' first member is a particle all of 
> whose properties, recursively, are identical to those of B, 
> with the exception of {annotation} properties.
> 
> What exactly are the properties of the particles that must be equal?

The immediate properties (3.9.1) are min occurs, max occurs, and term; if
the term is a wildcard then its relevant properties (3.10.1) are namespace
constraint and process content; if the term is an element declaration then
its relevant properties (3.3.1) are name, target Namespace, type definition,
etc, and so on.

In practice when schema components are constructed from schema documents
this constraint will automatically be satisfied, by virtue of the way that
the particle is constructed. The constraint is only relevant for systems
that provide some way of creating components "by hand".

Michael Kay
http://www.saxonica.com/
Received on Tuesday, 4 November 2008 14:51:42 GMT

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