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
IBM Certified Developer -XML and Related Technologies(141)<br />SCJP2 SCWCD
posted 14 years ago
"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