Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.0
-
None
Description
The XML Schema spec [1] states that if the
{term}property of a particle is a model group with
{compositor} all then {maxOccurs} of that particle must equal 1. Xerces currently allows maxOccurs > 1 for references to a model group definition whose model group has {compositor}all, for instance:
<xs:group name="myGroup">
<xs:all>
<xs:element name="a"/>
<xs:element name="b"/>
<xs:element name="c"/>
</xs:all>
</xs:group>
<xsd:complexType name="myInvalidType">
<xsd:group ref="myGroup" maxOccurs="100">
</xsd:complexType>
This bug is causing one test in the W3C XML Schema 1.0 2nd Edition test suite to fail:
msData/particles/particlesEa025.xsd