• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can a simpleType have two length facets?  RSS feed

 
Karthik Jayaraman
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<simpleType>
<restriction base="string">
<length value="2"/>
<length value="5"/>
......

Would the above mean that the simple content can have a length of either 2 or 5?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that the simple content can have a length of 5 as the first length declaration will get overridden by the second one.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!