W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2002

Re: what namespace for unqualified locals?

From: Neil Bradley <neil.bradley@rubus.com>
Date: Wed, 10 Jul 2002 06:29:14 -0400 (EDT)
Message-ID: <502326F46B08D41191C400508B6D70C1035A34DD@NVISION01>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Sorry to re-raise this thread after all this time, but it touches on a
number of related topics I currently have no answer to.

First, I agree that unqualified elements are similar to unqualified
attributes. In the XML Namespaces standard, this puts them in a the
Per-Element-Type partition of a namespace, where each global elements gets
its own space for locally defined attributes, thus ensuring uniqueness
within each space. But surely this applies to qualified local elements too.
They cannot be considered the same as the globally defined elements in the
All Element Types partitions, because this set of names must be unique. And
they still cannot be directly referenced from an instance document, unless
they are embedded in a globally defined element. What's the difference?

Second, the concept of unqualified local elements, when they appear in a
document instance, seems to conflict with the statement in the XML
Namespaces standard that "a default namespace is considered to apply to the
element where it is declared (if that element has no namespace prefix), and
that the schema standard overrides this, by stating that it only applies if
the schema allows elements from outside of its target namespace to occur
within the content of the parent element. And what is supposed to happen if
a default namespace is in effect, and defined the <X> element, and there is
also an <X> element defined locally - which does it assume if the Any
element is used to allow both namespaces?



Neil Bradley  - Consultant

t +44 (0) 20 7909 1460  |  m +44 (0) 7930 560873  |  f +44 (0) 20 7909 1460
a  77 Shaftesbury Avenue  |  London W1D 5DT  |  UK

Rubus provides e-business solutions that turn innovative ideas
into practical business reality.
:: rubus   |    www.rubus.com

Any views or opinions presented are solely those of the author
and do not necessarily represent those of Rubus.
Received on Thursday, 11 July 2002 10:38:07 UTC

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