validator/share/templates/en_US table.tmpl,1.27,1.28 valid.tmpl,1.21,1.22

Update of /sources/public/validator/share/templates/en_US
In directory hutz:/tmp/cvs-serv5008/share/templates/en_US

Modified Files:
	table.tmpl valid.tmpl 
Log Message:
for documents served as XML, and for which the root element is not <html>,
the fallback to XHTML is not a great choice. Instead, we can perform a basic xml-wf checking,
and report a positive result for these.



Index: valid.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/valid.tmpl,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- valid.tmpl	19 Apr 2007 11:02:36 -0000	1.21
+++ valid.tmpl	7 May 2007 19:17:58 -0000	1.22
@@ -34,7 +34,8 @@
     to match the changes we have performed automatically, but 
     <strong>it will not be valid until you make these changes</strong>.
 <TMPL_ELSE>
-    was checked and found to be valid
+    was checked and found to be 
+    <TMPL_IF NAME="xmlwf_only">well-formed<TMPL_ELSE>valid</TMPL_IF>
     <TMPL_VAR NAME="file_version" ESCAPE="HTML">.  This means that the
     resource in question identified itself as
     "<TMPL_VAR NAME="file_version" ESCAPE="HTML">" and that we successfully

Index: table.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/table.tmpl,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- table.tmpl	7 May 2007 15:59:54 -0000	1.27
+++ table.tmpl	7 May 2007 19:17:58 -0000	1.28
@@ -3,7 +3,8 @@
     <h2 class="tentative_valid">This Page Is <em>Tentatively</em> Valid 
     <TMPL_VAR NAME="file_version" ESCAPE="HTML"></h2>
   <TMPL_ELSE>
-    <h2 class="valid">This Page Is Valid <TMPL_VAR NAME="file_version" ESCAPE="HTML">!</h2>
+    <h2 class="valid">This Page Is <TMPL_IF NAME="xmlwf_only">well-formed<TMPL_ELSE>Valid</TMPL_IF>
+     <TMPL_VAR NAME="file_version" ESCAPE="HTML">!</h2>
   </TMPL_IF>
 <TMPL_ELSE>
   <TMPL_IF NAME="fatal_error">
@@ -73,6 +74,12 @@
     <tr><th>Doctype:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td></tr>
   </TMPL_IF>
 </TMPL_IF>
+<TMPL_IF NAME="root_element">
+  <tr>
+    <th>Root Element:</th>
+    <td colspan="2"><TMPL_VAR NAME="root_element" ESCAPE="HTML"></td>
+  </tr>
+</TMPL_IF>
 <TMPL_IF NAME="file_namespace">
     <tr>
       <th>Root Namespace:</th>

Received on Monday, 7 May 2007 19:18:06 UTC