Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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>