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

Re: xmlns attribute namespace

From: Philippe Le Hegaret <plh@w3.org>
Date: Fri, 22 Dec 2000 11:10:26 +0100
Message-ID: <3A432892.7774E77F@w3.org>
To: Garret Wilson <garret@globalmentor.com>
CC: www-dom list <www-dom@w3.org>
Garret Wilson wrote:
> 
> John,
> 
> <!-- 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>

Garret,

here is an expanded form of your document with the explicit DOM Level 2
namespaceURI attributes using a modified pseudo syntax from [1]:

<!-- 1 --> <{"urn:com:books-r-us"}section
                {"http://www.w3.org/2000/xmlns/"}xmlns='urn:com:books-r-us'>
<!-- 2 -->  <{"urn:com:books-r-us"}title>Book-Signing Event</title>
<!-- 3 -->  <{"urn:com:books-r-us"}signing>
<!-- 4 -->   <{"urn:com:books-r-us"}author
                  {NULL}title="Mr" {NULL}name="Vikram Seth" />
<!-- 5 -->   <{"urn:com:books-r-us"}book
                  {NULL}title="A Suitable Boy" {NULL}price="$22.95" />
            </{"urn:com:books-r-us"}signing>
           </{"urn:com:books-r-us"}section>


Philippe

[1] http://www.jclark.com/xml/xmlns.htm
Received on Friday, 22 December 2000 05:11:04 GMT

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