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

Error not reported on duplicate attributes

    XMLWordPrintableJSON

Details

    Description

      If I validate the following schema Xerces does not complain about the the duplicate attribute. The same attribute group is referred twice.

      You can reproduce the issue on the xml-schema-1.1-dev branch.

      -------- schema.xsd --------------------
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
      <xs:complexType name="baseType">
      <xs:attributeGroup ref="globalAttributes"/>
      <xs:attributeGroup ref="globalAttributes"/>
      </xs:complexType>

      <xs:attributeGroup name="globalAttributes">
      <xs:attribute name="id" type="xs:ID"/>
      </xs:attributeGroup>
      </xs:schema>
      -------------------------------------------------------

      Attachments

        Activity

          People

            mukul_gandhi Mukul Gandhi
            octavian.nadolu Octavian Nadolu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: