Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

final and block attribute

 
Vasudha Deepak
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between final and block attribute used in complex types in Schemas?
Both have the capability to retrict derivation by extension,retriction or all.
Thanks,
Vasudha
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"final" attribute for a given type has the ability to restrict the nature of derivation (restriction or extension).
"block" is used for substitution groups. The basic requirement for a substitution group is that the substituting elements (that can potentially substitute the head element) should be of the same type as the HEAD element they are going to substitute. Hence when we come to the concept of substitution, we already know that the substituting element is derived (by extension or restriction) from the element being substituted. Please look into Roger's tutorial ppt.1 for more details.
 
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!