Re: [Bug] XHTML Strict Minimal document

* "Karl Dubost" <karl@w3.org> wrote:
| In http://www.w3.org/TR/xhtml1/#docconf
|
| 3.1.1 Strictly Conforming Documents
| A Strictly Conforming XHTML Document is a document that requires only
| the facilities described as mandatory in this specification. Such a
| document must meet all of the following criteria:
|
| 1. It must validate against one of the three DTDs found in Appendix A.

| So we could have a very minimal document as
|
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
| "DTD/xhtml1-strict.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml">
|
| </html>

No. This does not validate against one of the 3 DTDs as required above. A
title element is required in the DTD. This is not expressed in the
recommendation text, but thats not important, conformance to the DTD is
required.

Furthermore you should not use relative URIs to reference the DTD; i don't
think the resolved URI points to the correct DTD file, so, a minimal XHTML 1.0
document would look like

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title/></head>
<body/>
</html>

The xmlns attribute has a fixed value in the DTD and does not need to be
defined in the XHTML file.

regards,
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://www.websitedev.de/
..weaving a secure, well-formed, standard compliant WWW for =everyone=..

Received on Tuesday, 24 October 2000 10:39:48 UTC