1<TMPL_IF NAME="VALID">
2  <TMPL_IF NAME="is_tentative">
3    <h2 class="tentative_valid">This document was <em>Tentatively</em> checked as
4    <TMPL_VAR NAME="file_version" ESCAPE="HTML"></h2>
5  <TMPL_ELSE>
6    <h2 class="valid">This document was successfully checked as <TMPL_IF NAME="xmlwf_only">well-formed</TMPL_IF>
7     <TMPL_VAR NAME="file_version" ESCAPE="HTML">!</h2>
8  </TMPL_IF>
9<TMPL_ELSE>
10  <TMPL_IF NAME="fatal_error">
11  <h2 id="results" class="invalid">Sorry! This document cannot be checked.</h2>
12  <TMPL_ELSE>
13  <h2 id="results" class="invalid">Error<TMPL_IF NAME="number_of_errors_is_plural">s</TMPL_IF> found while checking this document as <TMPL_VAR NAME="file_version" ESCAPE="HTML">!</h2>
14  </TMPL_IF>
15</TMPL_IF>
16
17
18<TMPL_IF NAME="file_uri">
19<TMPL_IF NAME="is_upload">
20<form id="form" method="post" enctype="multipart/form-data" action="check">
21<TMPL_ELSE>
22  <TMPL_IF NAME="is_direct_input">
23    <form id="form" method="post" enctype="multipart/form-data" action="check">
24  <TMPL_ELSE>
25    <form id="form" method="get" action="check">
26  </TMPL_IF>
27</TMPL_IF>
28  <table class="header">
29    <tr>
30    <th>Result:</th>
31    <TMPL_IF NAME="VALID">
32    <td colspan="2" class="valid">
33      <TMPL_IF NAME="is_tentative">
34        Tentatively passed<TMPL_IF Name="valid_warnings_num">, <strong class="has_warnings"><TMPL_VAR NAME="valid_warnings_num"> warning(s)</strong></TMPL_IF>
35      <TMPL_ELSE>
36        Passed<TMPL_IF Name="valid_warnings_num">, <strong class="has_warnings"><TMPL_VAR NAME="valid_warnings_num"> warning(s)</strong></TMPL_IF>
37      </TMPL_IF>
38    <TMPL_ELSE>
39    <td colspan="2" class="invalid">
40      <TMPL_IF NAME="number_of_errors_is_1">1 Error</TMPL_IF><TMPL_IF NAME="number_of_errors_is_plural"><TMPL_VAR NAME="valid_errors_num" ESCAPE="HTML"> Errors</TMPL_IF><TMPL_IF NAME="valid_warnings_num">, <TMPL_VAR NAME="valid_warnings_num"> warning(s)</TMPL_IF>
41      <TMPL_IF NAME="number_of_errors_is_0">Invalid<!-- this case where validation fails but no error is listed should never happen --></TMPL_IF>
42    </TMPL_IF>
43    </td>
44    </tr>
45    <tr>
46<TMPL_IF NAME="is_upload">
47  <th><label title="Choose a Local File to Upload and Validate" for="uploaded_file">File</label>:</th>
48  <td colspan="2">
49
50    <input type="file" id="uploaded_file" name="uploaded_file" size="30" />
51    <p class="revalidate_instructions">Use the file selection box above if you wish to re-validate the uploaded file <TMPL_VAR NAME="file_uri" ESCAPE="HTML"></p>
52  </td>
53
54<TMPL_ELSE>
55  <TMPL_IF NAME="is_direct_input">
56          <th><label title="Uploaded source of your Document" for="fragment">Source</label>:</th><td colspan="2"><textarea id="fragment" name="fragment" rows="12" cols="80"><TMPL_LOOP NAME="file_source"><TMPL_VAR NAME="file_source_line" ESCAPE="HTML">
57</TMPL_LOOP></textarea></td>
58  <TMPL_ELSE>
59      <th><label title="Address of Page to Validate" for="uri">Address</label>:</th>
60      <td colspan="2"><input type="text" id="uri" name="uri" value="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" size="50" /></td>
61  </TMPL_IF>
62</TMPL_IF>
63    </tr>
64<TMPL_IF NAME="opt_verbose">
65    <tr><th>Modified:</th><td colspan="2"><TMPL_VAR NAME="file_modified" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
66    <tr><th>Server:</th><td colspan="2"><TMPL_VAR NAME="file_server" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
67    <tr><th>Size:</th><td colspan="2"><TMPL_VAR NAME="file_size" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
68    <tr><th>Content-Type:</th><td colspan="2"><TMPL_VAR NAME="file_contenttype" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
69</TMPL_IF>
70  <TMPL_LOOP NAME="debug">
71    <tr><th><TMPL_VAR NAME="name" ESCAPE="HTML">:</th><td colspan="2"><TMPL_VAR NAME="value" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
72  </TMPL_LOOP>
73<TMPL_IF NAME="file_charset">
74  <tr>
75    <th><label title="Character Encoding" for="charset">Encoding</label>:</th>
76    <td><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_charset.tmpl"></td>
77  </tr>
78<TMPL_ELSE>
79  <tr><th>Encoding:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_charset.tmpl"></td></tr>
80</TMPL_IF>
81<TMPL_IF NAME="file_version">
82  <tr>
83    <th><label for="doctype" title="Document Type">Doctype</label>:</th>
84    <td><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td>
85  </tr>
86<TMPL_ELSE>
87  <tr><th>Doctype:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td></tr>
88</TMPL_IF>
89<TMPL_IF NAME="root_element">
90  <tr>
91    <th>Root Element:</th>
92    <td colspan="2"><TMPL_VAR NAME="root_element" ESCAPE="HTML"></td>
93  </tr>
94</TMPL_IF>
95<TMPL_IF NAME="file_namespace">
96    <tr>
97      <th>Root Namespace:</th>
98      <td colspan="2"><a href="<TMPL_VAR NAME="file_namespace" ESCAPE="HTML">"><TMPL_VAR NAME="file_namespace" ESCAPE="HTML"></a></td>
99    </tr>
100</TMPL_IF>
101<TMPL_IF NAME="file_namespaces">
102    <tr>
103      <th>Other Namespaces</th>
104      <td colspan="2">
105        <ul>
106          <TMPL_LOOP NAME="file_namespaces"><li><a href="<TMPL_VAR NAME="uri" ESCAPE="HTML">"><TMPL_VAR NAME="uri" ESCAPE="HTML"></a></li></TMPL_LOOP>
107        </ul>
108      </td>
109    </tr>
110</TMPL_IF>
111  </table>
112
113<div id="don_program"></div>
114<script type="text/javascript" src="http://www.w3.org/QA/Tools/don_prog.js"></script>
115
116        <fieldset id="revalidate_opts">
117                 <legend>Options</legend>
118
119    <table class="header">
120      <tr>
121        <td><input type="checkbox" value="1" id="ss" name="ss"
122<TMPL_IF NAME="opt_show_source">
123	checked="checked"
124</TMPL_IF>
125		/><label title="Show Page Source" for="ss">Show&nbsp;Source</label></td>
126              <td><input type="checkbox" value="1" id="outline" name="outline"
127<TMPL_IF NAME="opt_show_outline">
128	checked="checked"
129</TMPL_IF>
130		/><label title="Show an Outline of the document" for="outline">Show&nbsp;Outline</label></td>
131                <td><input type="radio" name="group" id="group_no" value="0"
132                        <TMPL_UNLESS NAME="opt_group_errors">
133                        	checked="checked"
134                        </TMPL_UNLESS>
135                        /><label for="group_no">List Messages Sequentially</label>
136                        <input type="radio" name="group" id="group_yes" value="1"
137                                <TMPL_IF NAME="opt_group_errors">
138                                	checked="checked"
139                                </TMPL_IF>
140                                 /><label for="group_yes">Group Error Messages by Type</label></td>
141            </tr>
142            <tr>
143              <td><input type="checkbox" value="1" id="No200" name="No200"
144<TMPL_IF NAME="opt_no200">
145	checked="checked"
146</TMPL_IF>
147		/><label title="Validate also pages for which the HTTP status code indicates an error" for="No200">Validate&nbsp;error&nbsp;pages</label></td>
148              <td><input type="checkbox" value="1" id="verbose" name="verbose"
149<TMPL_IF NAME="opt_verbose">
150	checked="checked"
151</TMPL_IF>
152		/><label title="Show Verbose Output" for="verbose">Verbose&nbsp;Output</label></td>
153    		<td><input id="st" name="st" type="checkbox" value="1"
154                        <TMPL_IF NAME="opt_show_tidy">
155                        	checked="checked"
156                        </TMPL_IF>
157    		         /><label for="st">Clean up Markup with HTML-Tidy</label></td>
158            </tr>
159
160    </table>
161        <p class="moreinfo">
162          <a href="docs/users.html#Options">Help</a> on the options is available.
163        </p>
164    <div id="revalidate_button" class="submit_button">
165 <TMPL_IF NAME="accept"><input type="hidden" value="<TMPL_VAR NAME="accept" ESCAPE=HTML>" id="accept" name="accept" /></TMPL_IF><TMPL_IF NAME="accept-language"><input type="hidden" value="<TMPL_VAR NAME="accept-language" ESCAPE=HTML>" id="accept-language" name="accept-language" /></TMPL_IF><TMPL_IF NAME="accept-charset"><input type="hidden" value="<TMPL_VAR NAME="accept-charset" ESCAPE=HTML>" id="accept-charset" name="accept-charset" /></TMPL_IF><TMPL_IF NAME="user-agent"><input type="hidden" value="<TMPL_VAR NAME="user-agent" ESCAPE=HTML>" id="user-agent" name="user-agent" /></TMPL_IF>
166      <input type="submit" value="Revalidate" title="Validate this document again" />
167    </div>
168  </fieldset>
169</form>
170</TMPL_IF>
171