- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 25 Mar 2005 04:39:49 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/share/templates/en_US
In directory hutz:/tmp/cvs-serv28604
Modified Files:
warnings.tmpl
Log Message:
Making clearer distinction between W09 and W16
- W09 is "no doctype found", using default
- W16 is "no doctype found", and there was
* a choice of doctype given
* fbd (fallback checkbox) set
Index: warnings.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/warnings.tmpl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- warnings.tmpl 24 Mar 2005 09:00:45 -0000 1.8
+++ warnings.tmpl 25 Mar 2005 04:39:47 -0000 1.9
@@ -159,7 +159,7 @@
</dd>
</TMPL_IF>
<TMPL_IF NAME="W09">
- <dt id="W09"><code>DOCTYPE</code> Fallback in effect!</dt>
+ <dt id="W09">No <code>DOCTYPE</code> found! Attempting validation with <TMPL_VAR NAME="W09_dtd" ESCAPE="HTML">.</dt>
<dd>
<p>
The DOCTYPE Declaration was not recognized or is missing. This
@@ -170,6 +170,43 @@
document will not be Valid until you have corrected the problem with the
DOCTYPE Declaration.
</p>
+ <TMPL_IF NAME="opt_verbose">
+ <p>
+ You should place a DOCTYPE declaration as the very first thing in your
+ HTML document. For example, for a typical <a
+ href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> document:
+ </p>
+ <pre>
+ <!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" lang="en" xml:lang="en">
+ <head>
+ <title>Title</title>
+ </head>
+
+ <body>
+ <!-- ... body of document ... -->
+ </body>
+ </html>
+ </pre>
+ <p>
+ For XML documents, you may also wish to include an "XML Declaration"
+ even before the DOCTYPE Declaration, but this is not well supported
+ in older browsers. More information about this can be found in the
+ <a href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> Recommendation.
+ </p>
+ <p>
+ The W3C QA Activity maintains a <a
+ href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">List of
+ Valid Doctypes</a> that you can choose from, and the <acronym
+ title="Web Design Group">WDG</acronym> maintains a document on
+ "<a href="http://htmlhelp.com/tools/validator/doctype.html">Choosing
+ a DOCTYPE</a>".
+ </p>
+ <TMPL_ELSE>
+ <p>So what should I do? <a href="docs/help.html#faq-doctype">Tell me more...</a></p>
+ </TMPL_IF>
+
</dd>
</TMPL_IF>
<TMPL_IF NAME="W10">
Received on Friday, 25 March 2005 04:39:50 UTC