W3C home > Mailing lists > Public > www-international@w3.org > January to March 2007

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

From: Richard Ishida <ishida@w3.org>
Date: Tue, 13 Mar 2007 19:34:23 -0000
To: "'Felix Sasaki'" <fsasaki@w3.org>
Cc: <www-international@w3.org>
Message-ID: <023801c765a6$9b28b020$6501a8c0@rishida>

> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:09 GMT