W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > May 2012

Re: Test 0212 versus XML EC14N

From: Toby Inkster <tai@g5n.co.uk>
Date: Mon, 14 May 2012 22:38:09 +0100
To: Gregg Kellogg <gregg@greggkellogg.net>
Cc: Ivan Herman <ivan@w3.org>, W3C RDFWA WG <public-rdfa-wg@w3.org>
Message-ID: <20120514223809.2bb1fe1d@miranda.g5n.co.uk>
On Mon, 14 May 2012 15:08:22 -0400
Gregg Kellogg <gregg@greggkellogg.net> wrote:

> I believe that XML C14N causes the inherited namespaces to be demoted
> down to the <sup> element. Shouldn't the expected output be the
> nodeset with the addition of the default and dc namespaces?

But XML C14N is not what RDFa 1.0 uses. RDFa 1.0 uses XML EC14N. EC14N
is the same as C14N, except that it specifically excludes serialising
any namespaces which would be unused. In this case the "dc" namespace is
not used within the XML fragment, so is excluded.

The literal should be (excuse the wrapping):

"E = mc<sup xmlns=\"http://www.w3.org/1999/xhtml\">2</sup>: 
The Most Urgent Problem of Our Time"
^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Monday, 14 May 2012 21:36:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 14 May 2012 21:36:24 GMT