markup-validator commit: Add missing messages to SOAP templates.

changeset:   3293:3425027f0dcf
tag:         tip
user:        Takeshi Kurosawa <kurosawa-takeshi@mitsue.co.jp>
date:        Sat Jul 28 12:49:55 2012 +0300
files:       share/templates/en_US/soap_fault.tmpl share/templates/en_US/soap_warnings.tmpl
description:
Add missing messages to SOAP templates.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18408


diff -r c33aa0047b4d -r 3425027f0dcf share/templates/en_US/soap_fault.tmpl
--- a/share/templates/en_US/soap_fault.tmpl	Mon Jul 16 17:28:29 2012 +0300
+++ b/share/templates/en_US/soap_fault.tmpl	Sat Jul 28 12:49:55 2012 +0300
@@ -17,6 +17,22 @@
         <env:Value>m:Exception</env:Value>
        </env:Subcode>
      </env:Code>
+<TMPL_IF NAME="fatal_no_checker">
+     <env:Reason>
+	<env:Text xml:lang="en-US">External Checker not available</env:Text>
+     </env:Reason>
+    <env:Detail>
+     <m:messageid>fatal_no_checker</m:messageid>
+     <m:errordetail xml:lang="en-US">
+      Checking the Document Type of this document requires the help of an external tool which was either not enabled
+      in this validator, or is currently unavailable. Check in the validator's system configuration
+      that <TMPL_IF NAME="fatal_missing_checker"><TMPL_VAR NAME="fatal_missing_checker"> is enabled and functional<TMPL_ELSE>all external checkers are enabled, and test if they are responsive</TMPL_IF>.
+      <TMPL_IF NAME="fatal_checker_error">
+      The error encountered was: <TMPL_VAR NAME="fatal_checker_error" ESCAPE="HTML">
+      </TMPL_IF>
+     </m:errordetail>
+    </env:Detail>
+</TMPL_IF>
 
 <TMPL_IF NAME="fatal_transcode_error">
      <env:Reason>
@@ -133,6 +149,12 @@
     library:
     <TMPL_VAR NAME="fatal_http_warn" ESCAPE="HTML">
   </TMPL_IF>
+  <TMPL_IF NAME="fatal_http_no200">
+    You can choose to validate the received error document
+    (<TMPL_VAR NAME="fatal_http_no200" ESCAPE="HTML">)
+    for example if the URL intentionally points to one
+    (there is also a "Validate error pages" option in the options view for this purpose).
+  </TMPL_IF>
        </m:errordetail>
      </env:Detail>
 </TMPL_IF>
diff -r c33aa0047b4d -r 3425027f0dcf share/templates/en_US/soap_warnings.tmpl
--- a/share/templates/en_US/soap_warnings.tmpl	Mon Jul 16 17:28:29 2012 +0300
+++ b/share/templates/en_US/soap_warnings.tmpl	Sat Jul 28 12:49:55 2012 +0300
@@ -1,3 +1,6 @@
+<TMPL_IF NAME="W00">
+  <m:warning><m:messageid>W00</m:messageid><m:message>Using experimental feature: <TMPL_VAR NAME="W00_experimental_name" ESCAPE="HTML">.</m:message></m:warning>
+</TMPL_IF>
 <TMPL_IF NAME="W01">
   <m:warning><m:messageid>W01</m:messageid><m:message>Missing "charset" attribute for
     "<TMPL_VAR NAME="W01_ct" ESCAPE="HTML">" document.</m:message></m:warning>

Received on Saturday, 28 July 2012 09:50:22 UTC