Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD - all unbounded question ??

 
Blikkies Marais
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an xsd file, that I need to provide the functionality of 'all' and 'unbounded'. I get validation errors if I do so.
Eg.
<xs:all>
<xs:element ref="field" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="grid" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="buttons" minOccurs="0"/>
</xs:all>

Is there anyway I can get this functionality?
Everything I have read says you cannot have an element unbounded if it is attatched to an 'all'. It has to be attatched to a 'sequence' or a 'choice' to be 'unbounded'.
I need unbounded elements, in any sequence.
Please help. Thanks
 
Blikkies Marais
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks anyway, but in actual fact I asked a silly Q. To do what I needed all I had to do was make the sequence unbounded.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic