DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27828

incorrect validation of substitution groups with restriction





------- Additional Comments From [EMAIL PROTECTED]  2004-03-23 15:25 -------
The parser will implicitly treat the <xs:element ref="test:inner"
maxOccurs="unbounded"/> particle as a choice group with maxOccurs="unbounded"
containing the particles of the substitution group of the inner element, each
with max- and minOccurs equal to 1 [1]
<xs:choice maxOccurs="unbounded">
  <xs:element ref="type:dervInnerA"/>
  <xs:element ref="type:dervInnerB"/>
  <xs:element ref="type:dervInnerC"/>
  <xs:element ref="type:dervInnerSameType"/>
  <xs:element ref="type:inner"/>
</xs:choice>

Since the derived particle is a sequence, and the base particle is a choice, the
MapAndSum constraints apply. Each of the sub-particles in the sequence must be
valid restrictions of the particles they map to in the choice group. [2] As each
of the particles in the choice group has maxOccurs=1, minOccurs=1, none of the
particles in the sequence can have a max occurance or min occurance other than 1.

[1] http://www.w3.org/TR/xmlschema-1/#cos-particle-restrict
[2] http://www.w3.org/TR/xmlschema-1/#rcase-MapAndSum

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to