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

PROPOSAL: @xml:lang and @lang in XHTML+RDFa 1.0

From: Shane McCarron <shane@aptest.com>
Date: Fri, 12 Jun 2009 10:29:46 -0500
Message-ID: <4A32746A.1060208@aptest.com>
To: "public-rdf-in-xhtml-tf.w3.org" <public-rdf-in-xhtml-tf@w3.org>

As part of the process of updating XHTML 1.1, the XHTML 2 Working Group 
has agreed to re-introduce @lang.  The main reason for this is 
accessibility - most assistive technology software out there does not 
look at xml:lang, so if you want to make your web page maximally 
accessible you either need to 1) avoid XHTML 1.1 or 2) make your pages 
invalid.  Clearly neither was a great choice!

In the latest XHTML 1.1 draft, there is the following text:

    This specification also adds the |lang| attribute to the I18N
    attribute collection as defined in [XHTMLMOD
    The |lang| attribute is defined in [HTML4
    When this attribute and the |xml:lang| are specified on the same
    element, the |xml:lang| takes precedence. When both |lang| and
    |xml:lang| are specified on the same element, they SHOULD have the
    same value.

I propose that we add similar text to RDFa Syntax section 8 [2] in the 
next revision (I expect that revision to be a Proposed Edited 
Recommendation with minor tweaks like this).  Obviously this would also 
require minor changes to the DTD and XML Schema implementations.

[2] http://www.w3.org/TR/rdfa-syntax/#s_xhtmlrdfa

Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com
Received on Friday, 12 June 2009 15:30:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:32 UTC