W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: what's the language of a document ?

From: Gunnar Bittersmann <gunnar@bittersmann.de>
Date: Mon, 26 Oct 2009 09:23:05 +0100
Message-ID: <4AE55C69.1060804@bittersmann.de>
To: John Cowan <cowan@ccil.org>
CC: Martin Kliehm <martin.kliehm@namics.com>, Divya Manian <divya.manian@gmail.com>, "<public-html@w3.org>" <public-html@w3.org>, "www-international@w3.org" <www-international@w3.org>
John Cowan scripsit:
> Why would empty strings be disallowed in xml:lang attributes?  I can
> find no indication of that in XHTML 1.0.

The DTD says (cf. 
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict):
<!ENTITY % i18n
  "lang        %LanguageCode; #IMPLIED
   xml:lang    %LanguageCode; #IMPLIED
   dir         (ltr|rtl)      #IMPLIED"
   >

The entity 'LanguageCode' was former defined as:
<!ENTITY % LanguageCode "NMTOKEN">

NMTOKEN must not be an empty string (cf. 
http://www.w3.org/TR/REC-xml/#dt-name).

See also 
http://www.w3.org/International/questions/qa-no-language#undetermined

Cheers,
Gunnar
Received on Monday, 26 October 2009 08:23:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:09 UTC