<TMPL_IF NAME="file_uri">
<form id="form" method="get" action="check">
  <table class="header">
    <tr>
    <th>Result:</th>
    <TMPL_IF NAME="VALID">
    <td colspan="2" class="valid">
      <TMPL_IF NAME="is_tentative">
        Tentatively passed validation
      <TMPL_ELSE>
        Passed validation
      </TMPL_IF>
    <TMPL_ELSE>
    <td colspan="2" class="invalid">
      Failed validation, <TMPL_VAR NAME="number_of_errors" ESCAPE="HTML">
    </TMPL_IF>
    </td>
    </tr>
    <tr>
<TMPL_IF NAME="is_upload">
      <th>File:</th><td colspan="2"><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></td>
<TMPL_ELSE>
      <th><label title="Address of Page to Validate" for="uri">Address</label>:</th>
      <td colspan="2"><input type="text" id="uri" name="uri" value="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" size="50" /></td>
</TMPL_IF>
    </tr>
<TMPL_IF NAME="opt_verbose">
    <tr><th>Modified:</th><td colspan="2"><TMPL_VAR NAME="file_modified" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
    <tr><th>Server:</th><td colspan="2"><TMPL_VAR NAME="file_server" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
    <tr><th>Size:</th><td colspan="2"><TMPL_VAR NAME="file_size" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
    <tr><th>Content-Type:</th><td colspan="2"><TMPL_VAR NAME="file_contenttype" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
</TMPL_IF>
<TMPL_IF NAME="opt_debug">
  <TMPL_LOOP NAME="debug">
    <tr><th><TMPL_VAR NAME="name" ESCAPE="HTML">:</th><td colspan="2"><TMPL_VAR NAME="value" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
  </TMPL_LOOP>
</TMPL_IF>
<TMPL_IF NAME="is_upload">
    <tr><th>Encoding:</th><td colspan="2"><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td></tr>
    <tr><th>Doctype:</th><td colspan="2"><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td></tr>
<TMPL_ELSE>
  <TMPL_IF NAME="file_charset">
    <tr>
      <th><label title="Character Encoding" for="charset">Encoding</label>:</th>
      <td><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_charset.tmpl"></td>
    </tr>
  <TMPL_ELSE>
    <tr><th>Encoding:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_charset.tmpl"></td></tr>
  </TMPL_IF>
  <TMPL_IF NAME="file_version">
    <tr>
      <th><label for="doctype" title="Document Type">Doctype</label>:</th>
      <td><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td>
    </tr>
  <TMPL_ELSE>
    <tr><th>Doctype:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td></tr>
  </TMPL_IF>
</TMPL_IF>
<TMPL_IF NAME="file_namespace">
    <tr>
      <th>Root Namespace:</th>
      <td colspan="2"><a href="<TMPL_VAR NAME="file_namespace" ESCAPE="HTML">"><TMPL_VAR NAME="file_namespace" ESCAPE="HTML"></a></td>
    </tr>
</TMPL_IF>
<TMPL_IF NAME="file_namespaces">
    <tr>
      <th>Other Namespaces</th>
      <td colspan="2">
        <ul>
          <TMPL_LOOP NAME="file_namespaces"><li><a href="<TMPL_VAR NAME="uri" ESCAPE="HTML">"><TMPL_VAR NAME="uri" ESCAPE="HTML"></a></li></TMPL_LOOP>
        </ul>
      </td>
    </tr>
</TMPL_IF>
  </table>
<TMPL_UNLESS NAME="is_upload">
  <fieldset>
    <legend>Revalidate With Options</legend>
    <table class="header">
      <tr>
        <th><input type="submit" value="Revalidate" title="Revalidate file" />: </th>
        <td colspan="2">
          <table class="options">
            <tr>
              <td><label title="Show Page Source" for="ss"><input type="checkbox" value="1" id="ss" name="ss" 
<TMPL_IF NAME="opt_show_source">
	checked="checked"
</TMPL_IF>
		/>Show&nbsp;Source</label></td>
              <td><label title="Show an Outline of the document" for="outline"><input type="checkbox" value="1" id="outline" name="outline" 
<TMPL_IF NAME="opt_show_outline">
	checked="checked"
</TMPL_IF>
		/>Show&nbsp;Outline</label></td>
            </tr>
            <tr>
              <td><label title="Show Parse Tree" for="sp"><input type="checkbox" value="1" id="sp" name="sp" 
<TMPL_IF NAME="opt_show_parsetree">
	checked="checked"
</TMPL_IF>
		/>Show&nbsp;Parse&nbsp;Tree</label></td>
              <td><label title="Exclude Attributes from Parse Tree" for="noatt"><input type="checkbox" value="1" id="noatt" name="noatt" 
<TMPL_IF NAME="opt_show_noatt">
	checked="checked"
</TMPL_IF>
		/>...no&nbsp;attributes</label></td>
            </tr>
            <tr>
              <td><label title="Validate also pages for which the HTTP status code indicates an error" for="No200"><input type="checkbox" value="1" id="No200" name="No200"
<TMPL_IF NAME="opt_no200">
	checked="checked"
</TMPL_IF>
		/>Validate&nbsp;error&nbsp;pages</label></td>
              <td><label title="Show Verbose Output" for="verbose"><input type="checkbox" value="1" id="verbose" name="verbose"
<TMPL_IF NAME="opt_verbose">
	checked="checked"
</TMPL_IF>
		/>Verbose&nbsp;Output</label></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
      <div class="moreinfo">
        <p>
          <a href="docs/users.html#Options">Help</a> on the options is available.
        </p>
      </div>
      <div class="cheat"><!-- *sigh* --></div>
  </fieldset>
</TMPL_UNLESS>
</form>
</TMPL_IF>
