Confirmation needed: block attribute

 From my reading of the spec (and of the archives), it looks like the 
substitution can be controlled at 4 different levels: the xs:schema(s) 
ancestor element(s) give(s) default value(s), the element declaration 
can overide the default value and the type definition can overide it too.

In the element and type declarations, the actual value is the one in the 
  block attribute if present and the default one if not.

Let's take first a simple example where the xs:schema ancestor element 
is the same for both the element and type definition and its value is 
"restriction".

If I don't specify anything in the element and type definitions, the 
actual value will be "restriction".

If I specify an empty string in the element definition and nothing in 
the type definition, the actual value for the element will be "", the 
actual value for the type definition will be the default one (thus 
"restriction") and the result will still be "restriction". Can you 
confirm this (since I find if rather confusing) ?

Now, if my type and element definitions are defined in two different 
schemas with different default values, can you confirm that each of them 
use the default value of its own xs:schema ancestor if all the cases 
(include, redefine and import)?

Thanks

Eric
-- 
Rendez-vous a Paris pour mes formations XML/XSLT.
                                           http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
------------------------------------------------------------------------

Received on Tuesday, 29 January 2002 04:58:42 UTC