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

Reference to all model group allows maxOccurs > 1

    Details

    • Subcomponent:
    • Resolved In Build:
      1.4
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: