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

Re: RDFa, XHTML1.1 and @lang (via Twitter)

From: Toby A Inkster <tai@g5n.co.uk>
Date: Fri, 13 Mar 2009 19:33:11 +0000
Message-Id: <CCF50503-CA17-47AC-A249-1BE10071B253@g5n.co.uk>
To: Manu Sporny <msporny@digitalbazaar.com>, RDFa <public-rdf-in-xhtml-tf@w3.org>
The wording of the current RDFs syntax document is liberal enough to  
allow RDFa parsers to handle @lang already. (The DTD forbids the  
attribute to be present, but if we're going to get pedantic, the DTD  
doesn't allow xmlns attributes either.) In fact, depending on your  
reading of the document, it is arguable that handling @lang is  
already a requirement.

Step 3 of the processing sequence states:

> The [current element] is also parsed for any language information,  
> and if present, [current language] is set accordingly;

Note the phrase "*any* language information". The document then goes  
on to say that language information *can* be provided using xml:lang,  
but it doesn't say that other sources of language information cannot  
be explored.

I don't know whether this flexibility was intentional, but it is  
certainly present in the syntax document. Similar language is  
employed where it talks about parsing the element for URI mappings.

Toby A Inkster
Received on Friday, 13 March 2009 19:33:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:01 UTC