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

Re: FPWD Review Request: HTML+RDFa

From: Shane McCarron <shane@aptest.com>
Date: Thu, 03 Sep 2009 10:09:06 -0500
Message-ID: <4A9FDC12.6070207@aptest.com>
To: Henri Sivonen <hsivonen@iki.fi>
CC: Anne van Kesteren <annevk@opera.com>, Mark Birbeck <mark.birbeck@webbackplane.com>, Manu Sporny <msporny@digitalbazaar.com>, HTML WG <public-html@w3.org>, RDFa Developers <public-rdf-in-xhtml-tf@w3.org>


Henri Sivonen wrote:
> On Sep 3, 2009, at 15:06, Anne van Kesteren wrote:
>
>> Treating xmlns as any other attribute seems like a violation of the 
>> architecture of Namespaces in XML to me. I.e. a layering violation.
>
>
> Indeed, namespace declarations in XML don't appear in the [attributes] 
> property of an element information item in the Infoset. They appear in 
> the [namespace attributes] property and also affect the [in-scope 
> namespaces] property.
>
> See http://www.w3.org/TR/xml-infoset/#infoitem.element
>
> It's highly unusual at the W3C to layer a spec (other than Namespaces 
> itself of course) directly on top of XML 1.0 instead of layering it on 
> top of XML + Namespaces (or the Infoset).
>
Well...  The specification under review doesn't say ANYTHING about 
layering.  What Mark (and others) have pointed out is that there are a 
couple of ways to implement this.  If you want to implement an RDFa 
processor such that it is truly namespace aware, discovering the 
namespace prefix mappings via [in-scope namespaces] property... you are 
certainly free to do so.  I have yet to find a DOM implementation I can 
get to in Perl that makes this easy to do (my RDFa processor is written 
in Perl).  So, in my implementation, I have violated the namespace 
layer.  However, the RDFa specification doesn't say I have to.  Its just 
a technique that someone could use.  And many of us have.  And it works.

-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com
Received on Thursday, 3 September 2009 15:10:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 3 September 2009 15:10:35 GMT