RE: automatic namespaces use case

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 UTC