Re: Not detecting XHTML1.1 DTD

Christopher Thomas McGinlay <ascent@zetnet.co.uk> wrote:

> The HTML validator seemed not to pick up the following document type, 
> although it went on validate without difficulty.
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> 
> Seems a bit odd, or perhaps I have made an error?

You made a bunch of errors.

 - The FPI for XHTML 1.1 is "-//W3C//DTD XHTML 1.1//EN"
 - A typical system identifier for XHTML 1.1 is
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
 - There's no "lang" attribute in XHTML 1.1

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Wednesday, 19 September 2001 01:40:59 UTC