W3C home > Mailing lists > Public > www-validator@w3.org > March 1999

XHTML detection problems

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Thu, 4 Mar 1999 15:16:08 -0500 (EST)
Message-Id: <199903042016.PAA11489@login5.fas.harvard.edu>
To: www-validator@w3.org
I converted my homepage [1] to XHTML, but left the old doctype in
comments.  (This is valid according to XML 1.0 - see [2]).  The
validator [3] is not correctly sensing that the document is XHTML.
However, if I remove the commented doctypes, then it works.

Are you using expat for the XML parsing, or still nsgmls (tricked into
making SGML into XML - does SGML allow empty elements to have a slash
at the end?)?

David Baron

[1] http://www.fas.harvard.edu/~dbaron/index.html.en   (to make sure you
     don't get one of the versions I didn't convert yet - normally you
     don't need index.html.en)
[2] http://www.w3.org/TR/REC-xml#sec-well-formed
[3] http://validator.w3.org/

L. David Baron    Freshman, Harvard    dbaron@fas.harvard.edu
Links, SatPix, CSS, etc.  < http://www.fas.harvard.edu/~dbaron/ >
WSP CSS AC                < http://www.webstandards.org/css/ >
Received on Thursday, 4 March 1999 15:16:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:24 UTC