On 25 Sep 2006, at 18:55, Niels Fröhling wrote:

 This is my header:

<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Strict//ES"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="es" lang="es">

 No, it _is_ the "//ES", why is that? Any other validator I know don't
mind to validate spanish HTML.


The PUBLIC identifier in the Document Type Declaration _must_ end "/ EN" as it is a reference to the XHTML DTD (which happens to have been written in English), and unrelated to the language in which the XHTML document is written. If you look at the DTD:
<http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict>
you'll see that it states what the PUBLIC and SYSTEM identifiers are:

This DTD module is identified by the PUBLIC and SYSTEM identifiers:

           PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
           SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";

By changing your Document Type Declaration to use "ES", you are basically saying that your document type is _not_ XHTML 1.0, but some non-existent document type. As the validator cannot find any such Document Type Definition, it has nothing to validate your document against.

The definitions of the Document Type Declaration and associated requirements might make this clearer:
<http://www.w3.org/TR/html4/struct/global.html#h-7.2>
<http://www.w3.org/TR/xhtml1/#strict>

HTH,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to