This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Enumeration definition in XML Schema is redundant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Enumeration definition in XML Schema is redundant" Watch "Enumeration definition in XML Schema is redundant" New topic
Author

Enumeration definition in XML Schema is redundant

Juanito Lopez
Greenhorn

Joined: Apr 04, 2012
Posts: 1
Please just confirm (or refute) that this enumeration within a schema definition (.xsd file) is redundant,that's it, it could be deleted and the behaviour would be the same (due to the second simpleType in the union, just letting through anything being 5 characters long or less ):

[<simpleType name="decision">
<annotation>
<documentation>It will decide the flow</documentation>
</annotation>
<union>
<simpleType>
<restriction base="string">
<enumeration value="yes"/>
<enumeration value="no"/>
<enumeration value="maybe"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="string">
<maxLength value="5"/>
</restriction>
</simpleType>
</union>
<simpleType>
][/code]

 
GeeCON Prague 2014
 
subject: Enumeration definition in XML Schema is redundant