W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 1998

Language information.

From: Nir Dagan <nir@nirdagan.com>
Date: Sat, 12 Dec 1998 14:06:20 GMT
Message-Id: <199812120455.FAA05085@sahara.upf.es>
To: w3c-wai-gl@w3.org
Few notes on language:

1. There are no XML examples in the guidelines. 
One can have an XML example with using the
xml:lang attribute. This is one of the few xml attributes 
with predefined semantics.

2. I've been reading the HTTP 1.1 spec. that is, RFC 2068. 
In section 14.13 third paragraph we find:

"If no Content-Language is specified, the default is that the 
content is intended for all language audiences. This may mean 
that the sender does not consider it to be specific to any 
natural language, or that the sender does not know for 
which language it is intended. "

It seems to me that the last sentence 
is equivalent to: if the content provider is not absolutely drunk
he/she must serve all documents that contain text with a 
Content-Language header.

As far as HTML and XML are concerned specifying 
the language in both in an HTTP header and the markup
seems OK. With HTTP headers one can also specify language 
of plain text files and images that do not allow specifying language
in the file itself.

So I think that the guidelines should recommend using 
HTTP Content-Language header in addition to 
<HTML lang="language-code">

Regards,

Nir Dagan, Ph.D.
http://www.nirdagan.com
mailto:nir@nirdagan.com

"There is nothing quite so practical as a good theory." 
-- A. Einstein
Received on Saturday, 12 December 1998 00:04:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:46:58 GMT