W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2003

Re: rcaseNameAndTypeOK too restrictive about restrictions

From: Xan Gregg <xan@tibco.com>
Date: Fri, 6 Jun 2003 10:41:53 -0400
Message-ID: <339902DC0E58D411986A00B0D03D84320186ACEB@extmail.rtp.tibco.com>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Cc: "'Andrey V. Chernyakhovsky'" <achp@bk.ru>

I believe your example is allowed because before testing element particle
restrictions, substituion groups are expanded into choice groups. From
Schema Component Constraint: Particle Valid (Restriction):

...
2.1 Any top-level element declaration particle (in R or B) which is the
{substitution group affiliation} of one or more other element declarations
is treated as if it were a choice group whose {min occurs} and {max occurs}
are those of the particle, and whose {particles} consists of one particle
with {min occurs} and {max occurs} of 1 for the top-level element
declaration and for each of the declarations in its Ěsubstitution groupĚ. 

xan

Xan Gregg
TIBCO Software, Inc.
www.tibco.com 
Received on Friday, 6 June 2003 10:50:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:01 UTC