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

Re: xmlns attribute namespace

From: Garret Wilson <garret@globalmentor.com>
Date: Thu, 21 Dec 2000 11:00:23 -0800
Message-ID: <015301c06b80$4638fe20$7245a640@pacbell.net>
To: "Ray Whitmer" <rayw@netscape.com>
Cc: "Gareth Reakes" <gareth@decisionsoft.com>, "www-dom list" <www-dom@w3.org>
Ray,

----- Original Message -----
From: "Ray Whitmer" <rayw@netscape.com>

> > That almost seems straightfoward, until one reads the first example of
> > "Namespaces in XML", "A.3 Expanded Element Types and Attribute Names":
> >
> > <!-- 1 --> <section xmlns='urn:com:books-r-us'>
> > <!-- 2 -->   <title>Book-Signing Event</title>
> > <!-- 3 -->   <signing>
> > <!-- 4 -->     <author title="Mr" name="Vikram Seth" />
> > <!-- 5 -->     <book title="A Suitable Boy" price="$22.95" />
> >              </signing>
> >            </section>
> >
> > The document claims that the names would expand so that:
> >
> > 5 title <ExpAName name='title' eltype="book" elns="urn:com:books-r-us"
/>
> >
> > This seems to be saying that the <book> "title" attribute takes on the
> > default namespace of "book".
>
> Unless I am missing something here, title is clearly an element, not an
> attribute, which makes it participate in the default namespace.

You're looking at title (2), not title (5).

Garret
Received on Thursday, 21 December 2000 14:01:02 GMT

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