W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > May 2009

Re: Consensus on alternate prefixing mechanism

From: Ivan Herman <ivan@w3.org>
Date: Fri, 01 May 2009 15:22:56 +0200
Message-ID: <49FAF7B0.4010305@w3.org>
To: Martin McEvoy <martin@weborganics.co.uk>
CC: Shane McCarron <shane@aptest.com>, Manu Sporny <msporny@digitalbazaar.com>, RDFa <public-rdf-in-xhtml-tf@w3.org>


Martin McEvoy wrote:
>> We need to define a rule if we are permitting both.  Would it be silly
>> to mix them?  Of course it would.  In my opinion, the rule MUST be
>> that xmlns: takes precedence.
> 
> should it? how about if the xmlns:foo="http://bar.com/" was set in the
> html tag of the document and later somewhere in the content someone used
> @prefix="foo=http://foo.com/"  would xmlns take precedence then?
> 

I think what Shane meant (at least that is how I understood it) is that
@xmlns takes precedence if @xmlns and @prefix appear _on the same node_.
Otherwise the usual rules apply. Ie, to answer to your question: no, the
@prefix would hold in that case.

Ivan

-- 

Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf


Received on Friday, 1 May 2009 13:23:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 May 2009 13:23:24 GMT