OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] My report on experiments with unused namespaces

Heyo ...

On Wed, 15 Sep 2010 13:35:59 -0400, Costello, Roger L. wrote:
> [Definition] Unused namespace: a namespace in an XML instance 
> document which is not used in any element or attribute name.


How is this different from an "unused element".

Definition: an unused element is an element containing an ID attribute 
which is not referenced by an element with an IDREF attribute elsewhere 
in the document.

Or maybe we should define this as an "unused ID"?

In short: I don't see the point.  A namespace declaration is merely a 
particular form of attribute use which defines a certain sort of 
information.  In the best of all possible worlds, a namespace would 
only be defined when it was needed to scope an element or attribute use 
('scuse, I need to go cultivate my garden ...), but since multiple 
prominent uses of namespaces use the scoping mechanism for the 
*content* of attributes and elements, there is no way for a processor 
to know whether a namespace declaration is significant or not.

<a:b xmlns:a="b" xmlns:new="xyzzy">
  <a:c result="nothing happens">new:speak</a:c>

Question: is the declaration "xmlns:new" used or unused in this 

Amelia A. Lewis                    amyzing {at} talsever.com
The Bible contains six admonishments to homosexuals and three hundred 
sixty-two admonishments to heterosexuals.  That doesn't mean that God
doesn't love heterosexuals.  It's just that they need more supervision.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS