Re: xmlns attribute namespace

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 UTC