W3C home > Mailing lists > Public > public-xmlhypermedia@w3.org > August 2012

RE: automatic namespaces use case

From: Liam R E Quin <liam@w3.org>
Date: Thu, 02 Aug 2012 07:36:23 -0400
To: "Rushforth, Peter" <Peter.Rushforth@NRCan-RNCan.gc.ca>
Cc: "public-xmlhypermedia@w3.org" <public-xmlhypermedia@w3.org>
Message-ID: <1343907383.3078.69.camel@localhost.localdomain>
On Thu, 2012-08-02 at 10:30 +0000, Rushforth, Peter wrote:
> Hi Liam,
> 
> Actually, if you did this:
> 
> <foo rel="ns" href="http://example.com/mynsresource" 
>    type="application/namespaces+xml">
>   <bar/>
> </foo>

If I did this where exactly?

> and the /mynsresource was like this:
> 
> <ns>
>   <attribute>
>     <name>href</name>
>     <uri>http://www.w3.org/XML/1998/namespace</uri>
>   </attribute>
>   <attribute>
>     <name>src</name>
>     <uri>http://www.w3.org/XML/1998/namespace</uri>
>   </attribute>
> </ns>
> 
> etc
> 
> then you would never have to use the prefixed form in the instance
> document, maybe, because you'd
> recursively mapped the prefixed form to the  unprefixed form, although
> you could still use them if you really wanted because it is defined by
> fiat in the xml spec.

This sounds very like the Unobtrusive Namespaces proposal I had.

You do need prefixes for attributes sometimes, or a way to mark them.

Liam

(preparing for Balisage so not much time this week)

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Received on Thursday, 2 August 2012 11:37:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 2 August 2012 11:37:18 GMT