W3C home > Mailing lists > Public > www-validator@w3.org > August 2005

Re: [www-validator] <none>

From: David Dorward <david@dorward.me.uk>
Date: Fri, 19 Aug 2005 08:03:54 +0100
To: Jens Backeman <jens.bman@telia.com>
Cc: www-validator@w3.org
Message-ID: <20050819070354.GA15090@us-lot.org>

On Fri, Aug 19, 2005 at 08:54:43AM +0200, Jens Backeman wrote:
>    Aha, okey. Then I get it. But then, why do you write EN at the end in this
>    line?
> 
>    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Because the DTD is written in English.
  
>    Earlier I could have SV there to say its in swedish

That would have been wrong. The language of the DTD and the language
of the document that conforms to the DTD are represented in different
ways.

>    , and it worked.

It was probably working on the URL part of the Doctype. I'm not sure
exactly what consequences the recent upgrade had regarding Doctype
parsing. Other people on the list are more qualified to answer that
one.

>    Now I can't. And another funny thing is that the validator
>    installed locally (http://valid.backeman.se) and "your" validator
>    (http://validator.w3.org) gives different errors if I use this
>    DOCTYPE:

Is your local version 0.7?

>    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//SV"
>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

>    What does this EN/SV say in the DOCTYPE? What I've (maybe faulty)
>    understood about it is that it saids what language the site is in.

No, it says what language the DTD is in (i.e. this file:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd).

To specify the language the page is written in one would, as I
mentioned previously in this thread, use the Content-Language HTTP
header and the lang and/or xml:lang attributes.

(responses to the mailing list please)

-- 
David Dorward                                      http://dorward.me.uk
Received on Friday, 19 August 2005 07:03:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:19 GMT