W3C home > Mailing lists > Public > www-html@w3.org > July 2000

Re: French document

From: Russell Steven Shawn O'Connor <roconnor@uwaterloo.ca>
Date: Thu, 27 Jul 2000 10:49:58 -0400 (EDT)
To: "Pierre Crescenzo (I3S-UNSA-CNRS-CNAM)" <Pierre.Crescenzo@unice.fr>
cc: www-html@w3.org
Message-ID: <Pine.SOL.4.05.10007271045400.1458-100000@magnus.math.uwaterloo.ca>
On 27 Jul 2000, Pierre Crescenzo (I3S-UNSA-CNRS-CNAM) wrote:

> If my XHTML document contains French text, should I use "-//W3C//DTD
> XHTML 1.0 Strict//FR" in <!DOCTYPE...> and/or xml:lang="fr" lang="fr"
> in <html...>? Thank you in advance dor your help.

No, you still want to use //EN, because the DTD was developed in the
English language.  EN refers to the fact that all the element and
attribute names are in English, and the comments in the DTD are also in
English.  The EN isn't used by a computer in any way, other than the fact
that it is part of the identifier for the HTML DTD.

If your entire or most of the document that you have marked-up is French,
then you want to use lang="fr" in the html element.  I believe you will
also want to use xml:lang="fr", but I'm a little less sure about that.

-- 
Russell O'Connor                           roconnor@uwaterloo.ca
        <http://www.student.math.uwaterloo.ca/~roconnor/>
``Paradoxically, a refusal to `put a monetary value on life' means that
life is often undervalued.'' -- Artificial Intelligence: A Modern Approach
Received on Thursday, 27 July 2000 10:50:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:43 GMT