Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1238

Reference to "all" model group allows maxOccurs > 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 2.9.1
    • 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

      [1] http://www.w3.org/TR/xmlschema-1/#cos-all-limited

      Attachments

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            mrglavas@ca.ibm.com Michael Glavassevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: