W3C home > Mailing lists > Public > www-international@w3.org > October to December 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. 
<!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. 

See also 

Received on Monday, 26 October 2009 08:23:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:30 UTC