RE: reference to element, elementFormDefault unqualified

 
> I think there is a technical reason for using uqualified 
> locals: it makes allows derivation by restriction by types in 
> other namespaces.
> 
> The difficulty is that derivation by restriction (unlike 
> extension) requires one to repeat the original type 
> definition contents. If the derivation is in another 
> namespace, then the locals cannot be defined in the original 
> namespace.

Yes, but people design their documents first and write their schemas later.

The way around the limitation on derivation by restriction is not to use
unqualified local elements, it is to use global elements.

(The real problem comes, of course, when you try to restrict a content model
that wasn't written to make restriction possible - i.e. one that
unthinkingly uses qualified local elements).

Michael Kay
http://www.saxonica.com/

Received on Wednesday, 18 October 2006 14:50:39 UTC