[
https://issues.apache.org/jira/browse/WSCOMMONS-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930219#comment-13930219
]
Malintha Adikari edited comment on WSCOMMONS-585 at 3/11/14 11:09 AM:
----------------------------------------------------------------------
Attached patch contains the fix for this issue.
was (Author: malintha.adikari):
Patch for fix this issue
> "AttributeGroup" and "enumeration" elements are reordered in SimpleContent
> Restriction
> --------------------------------------------------------------------------------------
>
> Key: WSCOMMONS-585
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-585
> Project: WS-Commons
> Issue Type: Bug
> Components: XmlSchema
> Reporter: Malintha Adikari
> Priority: Minor
> Fix For: XmlSchema 1.4.7
>
> Attachments: WSCOMMONS-585.patch
>
>
> 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>
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]