• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can a simpleType have two length facets?

 
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!