- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 21 Jun 2007 19:33:52 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/share/templates/en_US In directory hutz:/tmp/cvs-serv29711/share/templates/en_US Modified Files: warnings.tmpl Log Message: adding a case for non-html, non-xml document without a doctype. Index: warnings.tmpl =================================================================== RCS file: /sources/public/validator/share/templates/en_US/warnings.tmpl,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- warnings.tmpl 22 May 2007 06:45:17 -0000 1.23 +++ warnings.tmpl 21 Jun 2007 19:33:50 -0000 1.24 @@ -237,6 +237,23 @@ </li> </TMPL_IF> +<TMPL_IF NAME="W09nohtml"> + <li class="msg_warn" id="W09nohtml"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No <code>DOCTYPE</code> found, and unknown root element. Aborting validation.</span> + + <p> + The DOCTYPE Declaration was not recognized or is missing. This + probably means that the Formal Public Identifier contains a spelling + error, or that the Declaration is not using correct syntax, or that + your document is not using a DOCTYPE Declaration. + </p> + <p> + Without a DOCTYPE Declaration it is not possible to check the validity of your document. Since the document does not start with the root <html> element, the validator would not attempt validation on a fall back HTML document type, and aborted the validation process. + </p> + <p>Learn <a href="docs/help.html#faq-doctype">how to add a doctype to your document</a> + from our <acronym title="Frequently Asked Questions">FAQ</acronym>, or use the validator's + option to validate your XML document against a specific Document Type</p> + </li> +</TMPL_IF> <TMPL_IF NAME="W09xml"> <li class="msg_warn" id="W09xml"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No <code>DOCTYPE</code> found! Checking XML syntax only.</span>
Received on Thursday, 21 June 2007 19:33:56 UTC