Uploaded image for project: 'XmlSchema'
  1. XmlSchema
  2. XMLSCHEMA-31

"AttributeGroup" and "enumeration" elements are reordered in SimpleContent Restriction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.1
    • None

    Description

      When we build XSD using XmlSchema 1.4.7 , it reorder "attributeGroup" element and "enemuration" in SimpleContentRestriction. This re-ordering causes error as the correct order of those two elements is essential in "Restriction".

      Original XSD:
      <complexType>
      <simpleContent>
      <restriction base="string">
      <enumeration value="Temporary"><annotation/></enumeration><enumeration value="IntendToReside"><annotation/></enumeration><attributeGroup ref="myAttributeGroup"/>
      </restriction>
      </simpleContent>
      </complexType>

      Build XSD (Re-ordered)

      <complexType>
      <simpleContent>
      <restriction base="string">
      <attributeGroup ref="myAttributeGroup"/>
      <enumeration value="Temporary"><annotation/></enumeration><enumeration value="IntendToReside"><annotation/></enumeration>
      </restriction>
      </simpleContent>
      </complexType>

      Attachments

        1. WSCOMMONS-585.patch
          3 kB
          Malintha Adikari

        Activity

          People

            dkulp Daniel Kulp
            malintha.adikari Malintha Adikari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: