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
    http://www.w3.org/TR/REC-xml#NT-prolog 
    http://www.w3.org/TR/REC-xml#NT-Comment
[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 GMT

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