XHTML detection problems

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 UTC