This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enumeration definition in XML Schema is redundant

 
Juanito Lopez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic