diff options
author | ot <ot@localhost> | 2007-06-28 10:54:52 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-06-28 10:54:52 +0000 |
commit | c6208fa691ddaab054353899e015dd94175f5b83 (patch) | |
tree | 40d58ec56127873a140fc370442cafff4ce84dac | |
parent | 5fe2f6cc0e7715083fcdc7a7553057afd8de0b34 (diff) | |
download | markup-validator-c6208fa691ddaab054353899e015dd94175f5b83.zip markup-validator-c6208fa691ddaab054353899e015dd94175f5b83.tar.gz markup-validator-c6208fa691ddaab054353899e015dd94175f5b83.tar.bz2 |
completely rewriting the warning for parse mode fallback, taking into account:
* whether a mime type was passed to the validator or not
* whether the doctype was not recognized, or recognized but unknown
-rw-r--r-- | share/templates/en_US/warnings.tmpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/share/templates/en_US/warnings.tmpl b/share/templates/en_US/warnings.tmpl index e6fabbe..6393aca 100644 --- a/share/templates/en_US/warnings.tmpl +++ b/share/templates/en_US/warnings.tmpl @@ -155,9 +155,14 @@ <TMPL_IF NAME="W06"> <li class="msg_warn" id="W06"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Unable to Determine Parse Mode!</span> - <p>Neither the MIME Media Type (<code><TMPL_VAR NAME="W06_mime" ESCAPE="HTML"></code>) - nor the document type for this document are sufficient to reliably choose - a parsing mode. Falling back to SGML mode.</p></li> + <p>It was not possible to reliably choose a parsing mode for this document, because:</p> + <ul> + <TMPL_IF NAME="W06_mime"><li> + the MIME Media Type (<code><TMPL_VAR NAME="W06_mime" ESCAPE="HTML"></code>) can be used for XML or SGML document types</li><TMPL_ELSE><li>in <em>Direct Input</em> mode, no MIME Media Type is served to the validator</li></TMPL_IF> + <TMPL_IF NAME="w06_doctype"><li>the Document Type (<code><TMPL_VAR NAME="w06_doctype" ESCAPE="HTML"></code>) is not in the validator's catalog</li><TMPL_ELSE><li>No known Document Type could be detected</li></TMPL_IF> + <li>No XML declaration (<abbr>e.g</abbr> <code><?xml version="1.0"?></code>) could be found at the beginning of the document.</li> + </ul> + <p>The validator is falling back to SGML mode.</p></li> </TMPL_IF> <TMPL_IF NAME="W07"> <li class="msg_warn" id="W07"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Contradictory Parse Modes Detected!</span> |