-
Bug
-
Resolution: Fixed
-
P3
-
7
-
1.4
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2206234 | 7 | Joe Wang | P2 | Closed | Fixed | b126 |
The XML Schema spec (http://www.w3.org/TR/xmlschema-1/#cos-all-limited) 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 2 negative JCK test to fail:
xml_schema/msData/particles/jaxb/particlesEa025.html#particlesEa025
xml_schema/msData/particles/jaxp/particlesEa025.html#particlesEa025
<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 2 negative JCK test to fail:
xml_schema/msData/particles/jaxb/particlesEa025.html#particlesEa025
xml_schema/msData/particles/jaxp/particlesEa025.html#particlesEa025
- backported by
-
JDK-2206234 Reference to all model group allows maxOccurs > 1
-
- Closed
-