W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2006

RE: reference to element, elementFormDefault unqualified

From: Michael Kay <mike@saxonica.com>
Date: Wed, 18 Oct 2006 15:50:28 +0100
To: "'Xan Gregg'" <xan.gregg@jmp.com>, "'XMLSchema-Dev'" <xmlschema-dev@w3.org>
Cc: "'Leo Antoli'" <Leo.Antoli@Misys.com>
Message-ID: <010d01c6f2c4$c0e8ec80$6601a8c0@turtle>

> 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
Received on Wednesday, 18 October 2006 14:50:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:37 UTC