W3C home > Mailing lists > Public > xml-names-editor@w3.org > February 2003

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

From: Richard Tobin <richard@cogsci.ed.ac.uk>
Date: Mon, 24 Feb 2003 15:58:14 GMT
Message-Id: <200302241558.PAA22243@rhymer.cogsci.ed.ac.uk>
To: malachi@tremerechantry.com, Richard Tobin <richard@cogsci.ed.ac.uk>
Cc: Tim Bray <tbray@textuality.com>, xml-names-editor@w3.org

> So, are you saying:
> 	xmlns="http://www.w3.org/blah"
> 	xmlns:other="http://www.other.com"
> 
> the first one has a 'null' namespace name and the second has the 'other' 
> namespace name?

"X is in the namespace http://whatever" and "X's namespace name is
http://whatever" mean the same thing.

"X is in no namespace" and "X's namespace name is null" mean the same
thing.


An element is in no namespace if it has no prefix, and there is no
default namespace in scope.

An attribute is in no namespace if it has no prefix.


In the document 

  <foo/>

foo is in no namespace, and its namespace name is null.

In the document

  <foo xmlns="http://example.org" xmlns:a="http://other.com"
       attr1="xyz" a:attr2="abc"/>

foo is in the namespace http://example.org and its
  namespace name is http://example.org

attr1 is in no namespace and its namespace name is null

attr2 is in the namespace http://other.com and its
  namespace name is http://other.com

-- Richard
Received on Monday, 24 February 2003 10:58:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:43 GMT