- From: Masayasu Ishikawa <mimasa@w3.org>
- Date: Tue, 07 Mar 2000 08:20:24 +0900
- To: gregb@activepath.com
- Cc: www-html-editor@w3.org
Dear Gregory, Thanks for your comments, and sorry for this late reply ... Gregory Beekman <gregb@activepath.com> wrote: > 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). Well, as the specification says: <http://www.w3.org/TR/2000/REC-xhtml1-20000126/#strict> 3.1.1 Strictly Conforming Documents (snip) 4. There must be a DOCTYPE declaration in the document prior to the root element. The public identifier included in the DOCTYPE declaration must reference one of the three DTDs found in Appendix A using the respective Formal Public Identifier. The system identifier may be changed to reflect local system conventions. So you may modify the system identifier appropriately, so long as you place your local copy of the DTD file to whatever place you want, e.g. "DTD/xhtml1-strict.dtd". The problem is not because the system identifier is not prefixed with <http://www.w3.org/TR/xhtml1/>, but because the actual DTD file is not stored in that location. If you actually place your local copy of the DTD file (and accompanying entity files) to "DTD/xhtml1-strict.dtd", then it should also work with IE5. Of course, you may point to the one on the W3C Web server, if you want. Regards, -- Masayasu Ishikawa / mimasa@w3.org W3C - World Wide Web Consortium
Received on Monday, 6 March 2000 18:20:45 UTC