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

Proper XHTML document type declaration not recognized

From: Christoph Schneegans <Christoph@Schneegans.de>
Date: Fri, 04 Aug 2006 10:36:48 GMT
To: <www-validator@w3.org>
Message-ID: <eavf10.3tg.1@mail.christoph.schneegans.de>

Hello!

An XHTML document starting with a document type declaration

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" []>

is correctly identified by the W3C Validator as XHTML 1.0 Strict.
However, a document starting with a slightly different document type
declaration

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"[]>

throws a "no Doctype (sic) found" error. Whitespace is not required
between external ID and internal subset, see
<http://www.w3.org/TR/REC-xml/#NT-doctypedecl>.

You may use
<http://validator.w3.org/check?uri=http://schneegans.de/temp/empty-subset-1.aspx>
and
<http://validator.w3.org/check?uri=http://schneegans.de/temp/empty-subset-2.aspx>
to reproduce this problem.

-- 
<http://schneegans.de/>                                              |
Received on Friday, 4 August 2006 10:39:22 GMT

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