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