W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2000

Re: xmlns attribute namespace

From: Gareth Reakes <gareth@decisionsoft.com>
Date: Thu, 21 Dec 2000 15:20:34 +0000 (GMT)
To: Garret Wilson <garret@globalmentor.com>
cc: www-dom list <www-dom@w3.org>
Message-ID: <Pine.LNX.4.21.0012211504470.3877-100000@phoenix.dsl.net>
Hello, 
after parsing the namespace of the xmlns attribute will be
http://www.w3.org/2000/xmlns/
Any attributes which are not prefixed and are not namespace declaration
attributes are in the null namespace.
Hope this helps.

Gareth


On Thu, 21 Dec 2000, Garret Wilson wrote:

> Thanks, Gareth.
> 
> So in the example below, would that give xmlns a DOM Level 2 namespace URI
> of "" (the empty string) or null?
> 
> Garret
> 
> ----- Original Message -----
> From: "Gareth Reakes" <gareth@decisionsoft.com>
> To: "Garret Wilson" <garret@globalmentor.com>
> Cc: "www-dom list" <www-dom@w3.org>
> Sent: Thursday, December 21, 2000 1:52 AM
> Subject: Re: xmlns attribute namespace
> 
> 
> > Default namespaces do not apply to attribute names. However according to
> > the to DOM Level 2 Core
> >
> > Note: In the DOM, all namespace declaration attributes are definition
> > bound to the namespace URI: "http://www.w3.org/2000/xmlns/". These are the
> > attributes whose namespace prefix or qualified name is "xmlns". Although,
> > at the time of writing, this is not part of the XML Namespaces
> > specification
> > [Namespaces], it is planned to be incorporated in a future revision.
> >
> >
> > Gareth
> >
> >
> > On Wed, 20 Dec 2000, Garret Wilson wrote:
> >
> > > Since the DOM Level 2 binds namespace URIs at creation time, what
> namespace
> > > would the "xmlns" attribute have?
> > >
> > > Look at the following example from "Namespaces in XML"
> > >
> > > <?xml version="1.0"?>
> > > <!-- elements are in the HTML namespace, in this case by default -->
> > > <html xmlns='http://www.w3.org/TR/REC-html40'>
> > >   <head><title>Frobnostication</title></head>
> > >   <body><p>Moved to
> > >     <a href='http://frob.com'>here</a>.</p></body>
> > > </html>
> > >
> > > Since these example "elements are in the HTML namespace," does this mean
> > > that the "xmlns" attribute is in the HTML namespace which it just
> defined?
> > > Furthermore, should a DOM Level 2 implementation bind
> > > http://www.w3.org/TR/REC-html40 as the namespace URI to "xmlns"?
> > >
> > > Thanks,
> > >
> > > Garret
> > >
> > >
> > >
> >
> 
> 
Received on Thursday, 21 December 2000 10:22:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT