W3C home > Mailing lists > Public > public-i18n-core@w3.org > January to March 2011

[Bug 10152] [polyglot] i18n comment 5 : Mention lang and xml:lang

From: <bugzilla@jessica.w3.org>
Date: Wed, 09 Mar 2011 20:42:16 +0000
To: public-i18n-core@w3.org
Message-Id: <E1PxQD2-00075a-Ix@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10152

--- Comment #18 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-03-09 20:42:16 UTC ---
(In reply to comment #17)

> QUESTION 1: Are XML processors, such as XSLT, required to react to HTTP
> Content-Language (coming from the web server), at all? 
> 
> I'll answer myself: they are not! This is pretty obvious because
> Content-Language is not meant to affect the language of the document .... 

Though XML 1.0 does say:

]] Language information may also be provided by external transport protocols
(e.g. HTTP or MIME). When available, this information may be used by XML
applications, but the more local information provided by xml:lang should be
considered to override it.[[

Is it not likely that XML 1.0 speaks about Content-Language ?

The only difference seems to be that HTML5 _requires_ user agents to use the
external information, whereas XML 1.0 only says that applications "might" do
so. 

The net effect, though, is that XML and HTML are not guaranteed treat
Content-Language the same way.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 9 March 2011 20:42:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 March 2011 20:42:20 GMT