Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6963124

Reference to all model group allows maxOccurs > 1

XMLWordPrintable

    • 1.4
    • generic
    • generic
    • Verified

        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

              joehw Joe Wang
              lkuskov Leonid Kuskov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: