W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2000

Possible Error in XHTML 1.0 Rec

From: Gregory Beekman <gregb@activepath.com>
Date: Wed, 23 Feb 2000 14:00:34 -0000
Message-ID: <29AA5A0E3A0CD21196F300A0C9D8575C0144D1B3@WROX3>
To: "'www-html-editor@w3.org'" <www-html-editor@w3.org>
Hi

The example you give of a minimal XHTML file in 
the XHTML 1.0 Recommendation, Section 3.1.1:

<?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>

works fine when stored as a .htm file, but storing it as
a .xml file and running it in IE5, it fails to find the
DTD/xhtml1-strict.dtd (4th line of file). If, however,
it is prefixed with http://www.w3.org/TR/xhtml1/ to become

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd 

then IE5 displays it as an XML file when saved as a
.xml file (and still works fine as a .htm).

Thus, should not the recommended beginning of the document
contain the full web address of the DTD, as in:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/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>

and not the abbreviated version as stated in the published example?

Gregory.

 +--------------------------------+------------------------------------+
          Gregory Beekman                       
           Technical Editor                       Wrox Press Ltd.
              Wrox Press                             Arden House
  +-------------------------------+         1102 Warwick Rd.
         Tel: 0121 687 4215                    Acocks Green
         Fax: 0121 687 4101             BIRMINGHAM B27 6BH
      Email: gregb@wrox.com  
   +------------------------------+-------------------------------------+
Received on Wednesday, 23 February 2000 09:02:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:45 GMT