RE: How do I say ‘this is not in any language’ in XHTML/HTML

> From: Felix Sasaki [mailto:fsasaki@w3.org] 
> Sent: 13 March 2007 19:28

> > I’m not clear whether the HTML DTD supports an empty string 
> value for lang. 
> 
> the XHTML DTD says
> 
> <!ENTITY % LanguageCode "NMTOKEN">
>     <!-- a language code, as per [RFC3066] -->
> 
> so an empty value is not legal.
> 
> 
> > If so, the presumably the validator needs to be fixed. If 
> not, then this is not a viable option, since you’d really 
> want both lang and xml:lang to have the same values.
> >   
> 
> <!ENTITY % i18n
>  "lang        %LanguageCode; #IMPLIED
>   xml:lang    %LanguageCode; #IMPLIED
>   dir         (ltr|rtl)      #IMPLIED"
>   >
> 
> it seems that both lang and xml:lang have the same 
> definition: no empty value possible.
> 
> I did not check the HTML DTD.

Aha, thanks for getting there before me :)  That's what I suspected from vague memories of looking into this before.

RI


============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)
 
http://www.w3.org/People/Ishida/
http://www.w3.org/International/
http://people.w3.org/rishida/blog/
http://www.flickr.com/photos/ishida/
 
 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 12/03/2007 19:19
 

Received on Tuesday, 13 March 2007 19:34:20 UTC