• 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.
 
What are you doing? You are supposed to be reading this 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!