- From: Ivan Herman <ivan@w3.org>
- Date: Fri, 9 Mar 2012 18:09:00 +0100
- To: Gregg Kellogg <gregg@kellogg-assoc.com>
- Cc: Manu Sporny <msporny@digitalbazaar.com>, W3C RDFWA WG <public-rdfa-wg@w3.org>
- Message-Id: <E30EEE73-8799-4050-A1AF-CB6405106CC1@w3.org>
On Mar 9, 2012, at 17:43 , Gregg Kellogg wrote: > On Mar 9, 2012, at 8:53 AM, Ivan Herman wrote: > >> >> On Mar 9, 2012, at 16:43 , Ivan Herman wrote: >> >>> This may be a specification error, but in the HTML5+RDFa document, not in the CR-to-be documents:-) >>> >>> Tests #12 tests the language setting (the same issue is also valid for tests #13 and #172): >> >> And also test #108 >> >> Ivan >> >>> >>> <!DOCTYPE html> >>> <html >>> prefix="ex: http://example.org/"> >>> <head about=""> >>> <title>Test 0012</title> >>> <meta about="http://example.org/node" property="ex:property" xml:lang="fr" content="chat" /> >>> </head> >>> <body> >>> <p></p> >>> </body> >>> </html> >>> >>> expecting >>> >>> ASK WHERE { >>> <http://example.org/node> <http://example.org/property> "chat"@fr . >>> } > > That's xmlns:ex="http://example.org/", at least when I open the document. Oops, sorry, that is my local test workflow:-) Indeed, that is xmlns in the original test. > >>> The HTML5+RDFa document says: >>> >>> "The current language can be set using either the @lang or @xml:lang attributes." >>> >>> However, the HTML5 document says: >>> >>> [[[ >>> Authors must not use the lang attribute in the XML namespace on HTML elements in HTML documents. To ease migration to and from XHTML, authors may specify an attribute in no namespace with no prefix and with the literal localname "xml:lang" on HTML elements in HTML documents, but such attributes must only be specified if a lang attribute in no namespace is also specified, and both attributes must have the same value when compared in an ASCII case-insensitive manner. >>> ]]] >>> >>> What this tells me is: >>> >>> - the test is actually wrong, because using xml:lang alone should not be used >>> - I wonder whether the HTML5+RDFa is correct; it could be understood as if xml:lang alone is acceptable. I think it would be better to refer to the HTML5 definition on how to set the language >>> >>> (Of course, an RDFa processor may be lax. I have now accepted a single xml:lang, although I will issue a processor warning.) > > It may be that a broad number of tests from RDFa 1.0 should be removed for HTML5, in addition to xml:lang, there's xmlns; not an appropriate prefix for HTML5. Ideally, the test harness would transform those into @prefix. Removing all those from the test case would mean removing way too much in my view. Is it very complicated to turn the xmlns things into prefixes? Ivan > > Gregg > >>> ---- >>> Ivan Herman, W3C Semantic Web Activity Lead >>> Home: http://www.w3.org/People/Ivan/ >>> mobile: +31-641044153 >>> FOAF: http://www.ivan-herman.net/foaf.rdf >>> >>> >>> >>> >>> >> >> >> ---- >> Ivan Herman, W3C Semantic Web Activity Lead >> Home: http://www.w3.org/People/Ivan/ >> mobile: +31-641044153 >> FOAF: http://www.ivan-herman.net/foaf.rdf >> >> >> >> >> > ---- Ivan Herman, W3C Semantic Web Activity Lead Home: http://www.w3.org/People/Ivan/ mobile: +31-641044153 FOAF: http://www.ivan-herman.net/foaf.rdf
Attachments
- application/pkcs7-signature attachment: smime.p7s
Received on Friday, 9 March 2012 17:08:49 UTC