• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Schema: Global Declaration

 
Kartik Shah
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Global element or attribute declaration cannot contain the attributes minOccurs, maxOccurs and use.

I understand why minOccurs and maxOccurs are not allowed as topmost element must be occuring once and only once.

Can somebody explain why "use" is not allowed ?

Thanks in Advance.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kartik Shah:
Can somebody explain why "use" is not allowed ?

For exactly the same reason as why maxOccurs and minOccurs are not allowed -- they must have a context in order to make sense.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic