Re: what's the language of a document ?

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