Re: Use cases for relative URIs as namespace names

At 12:06 PM -0500 1/31/04, Tim Berners-Lee wrote:

>  followed by a URI-encoding of the XML for  "What is cost of part number 4?"
>
>	http://example.com/customer?<query 
>xmlns:="./"><number>4</number><cost>?</cost></query>

I don't see why in this use case the query namespace must be related 
to the actual host name. Why not use

http://example.com/customer?<query 
xmlns:="http://www.example.com/query-namespace"><number>4</number><cost>?</cost></query>

regardless of the host name? The existing scheme seems quite fragile. 
Does the query fail if I access the database via literal IP address 
instead of host name? Or if I use an alias?


-- 

   Elliotte Rusty Harold
   elharo@metalab.unc.edu
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA

Received on Saturday, 31 January 2004 14:46:11 UTC