W3C home > Mailing lists > Public > public-xhtml2@w3.org > February 2009

Re: Can we have @lang back in XHTML Family?

From: Shane McCarron <shane@aptest.com>
Date: Tue, 03 Feb 2009 13:05:58 -0600
Message-ID: <49889596.6010106@aptest.com>
To: fantasai <fantasai.lists@inkedblade.net>
CC: Richard Ishida <ishida@w3.org>, public-xhtml2@w3.org, public-i18n-core@w3.org, fd@w3.org

XHTML 1.1 / XHTML Basic 1.1 will permit both @lang and @xml:lang.  They 
state that @xml:lang takes precedence, and advises authors to ensure 
that if both are specified they have the same value.  I think from a DOM 
perspective these are NOT the same attributes in XHTML 1.1 / XHTML Basic 
1.1.  I don't think they should be treated specially.  The only reason 
to support this in XHTML 1.1 / XHTML Basic 1.1 today is to increase the 
protability of XHTML content to current HTML user agents.

The ideal solution would be that future versions of HTML include 
"xml:lang" and prefer it - that way documents would just work without 
alteration when processed as HTML and when processed as XML.

fantasai wrote:
> Richard Ishida wrote:
>> Hi,
>> This topic was discussed last week in the i18n WG call, and the group
>> formally supports adding the lang attribute to the XHTML family as a 
>> stopgap
>> means to enable language information to be recognised by html processors.
>> http://www.w3.org/2009/01/28-core-minutes.html#item07
>> We would also like to enlist the support of the BPWG and the XHTML WGs to
>> propose to the HTML5 WG that their spec recognise xml:lang as 
>> equivalent to
>> lang, so that eventually XHTML can be written with a single language
>> attribute, ie. xml:lang, and still be recognised by html processors. 
>> Would
>> your groups support this?
> Define "equivalent". Same semantics or same DOM and semantics?
> I.e. Do you want
>   - 'lang' and 'xml:lang' to both be considered as presenting language info
>   - 'lang' in XHTML to be parsed into the DOM tree as 'xml:lang'?
>   - 'xml:lang' in XHTML to parsed into the DOM tre as 'lang'?
>   - something else?
> If there's a mismatch between 'lang' and 'xml:lang', which one wins?
> ~fantasai

Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com
Received on Tuesday, 3 February 2009 19:06:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:30:31 UTC