W3C home > Mailing lists > Public > www-validator@w3.org > September 2000

XHTML: Important Problem

From: Luke Flesch <luke.flesch@yale.edu>
Date: Sun, 24 Sep 2000 12:54:32 -0400 (EDT)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.10.10009241211390.26164-100000@morpheus.cis.yale.edu>
To whom it may concern,
	I am just beginning to learn XHTML and I was trying out your
validation service today.  To my dismay, my carefully-crafted XHTML was
not validating.  Looking into the matter further, I discovered a startling
fact - the minimal XHTML file listed in the W3C XHTML 1.0 Specification
DOES NOT VALIDATE.  The file is listed below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Virtual Library</title>
  </head>
  <body>
    <p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
  </body>
</html>

When I removed the first line, which specifies the XML version and 
encoding, it validated just fine as did the document I had written.  Thus,
the problem seems pretty clear.  

	Please forgive me if I have made some grevious error.  Thanks.

-Luke Flesch
Received on Sunday, 24 September 2000 14:37:45 GMT

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