Re: Fwd: Re: [jdom-interest] Namespace issues, et al

As Tim says, the "href" attribute is in no namespace.  An appendix to
Namespaces 1.0 talked of namespaces that were "per-element partitions"
of an ordinary namespace, but that has been removed in 1.1 due to
widespread confusion about it.

As to the sentence you quote:

  The namespace name for an unprefixed attribute name is always null.

Note that it says the namespace *name* is null, not that it's in a
null namespace.  The namespace name of an element that is in no
namespace is null.  This terminology was introduced (as part of
"expanded names") in XPath, and has been merged in to Namespaces 1.1.
See section 2.1 where the terminology is defined:

  [Definition: An expanded name is a pair consisting of a namespace
  name and a local name. ] [Definition: For a name in a namespace, the
  namespace name is the IRI identifying the namespace. For a name that
  is not in a namespace, the namespace name is null.

-- Richard

Received on Monday, 24 February 2003 08:56:39 UTC