perl/modules/W3C/XHTML/HTMLCompatChecker/bin appCcheck.pl,1.34,1.35

Update of /sources/public/perl/modules/W3C/XHTML/HTMLCompatChecker/bin
In directory hutz:/tmp/cvs-serv3162

Modified Files:
	appCcheck.pl 
Log Message:
output fixes

Index: appCcheck.pl
===================================================================
RCS file: /sources/public/perl/modules/W3C/XHTML/HTMLCompatChecker/bin/appCcheck.pl,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- appCcheck.pl	20 Sep 2006 07:06:52 -0000	1.34
+++ appCcheck.pl	22 Sep 2006 07:38:40 -0000	1.35
@@ -267,8 +267,7 @@
 ## Output routines ########################################################
 sub prep_output {
     my $output_param = shift;
-    my $html_output_template_text = 'Content-Type: text/html; charset=UTF-8
-    
+    my $html_output_template_text = CGI::header(). '
 <!DOCTYPE html
 	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -276,7 +275,7 @@
 <head>
 <title>Experimental XHTML 1.0 Appendix C checker</title>
 <link rel="stylesheet" type="text/css" href="http://qa-dev.w3.org:8001/css-validator/base.css" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 </head>
 <body>
 <div id="banner"><h1 id="title"><a href="http://www.w3.org"><img src="http://www.w3.org/Icons/WWW/w3c_home.gif" alt="W3C" /></a> XHTML 1.0 Appendix C checker</h1></div>
@@ -296,18 +295,19 @@
 <TMPL_UNLESS NAME="uri"><p>Enter the URI of an XHTML 1.0 document which you would like to check against the 
 <a href="http://www.w3.org/TR/xhtml1/#guidelines">HTML Compatibility Guidelines</a> .</p></TMPL_UNLESS>
 
+<TMPL_IF NAME="uri">
 <TMPL_UNLESS NAME="is_wf">
 <p>The document appears to not be well-formed XML. Either it is not XHTML (e.g HTML up to version 4.01) or it has XML well-formedness errors. 
 HTML Compatibility guidelines checking does not apply.
 </p>
 </TMPL_UNLESS>
 <TMPL_UNLESS NAME="is_relevant_ct">
-foo
+<p>The document is not served with a <code>text/html</code> media type. HTML Compatibility guidelines checking does not apply.
 </TMPL_UNLESS>
 <TMPL_UNLESS NAME="is_relevant_doctype">
-bar
+The document does not appear to be XHTML 1.0. HTML Compatibility guidelines checking does not apply.
 </TMPL_UNLESS>
-
+</TMPL_IF>
 
 </div>
 </form>
@@ -395,7 +395,8 @@
       <info>
               <line><TMPL_VAR NAME="line" ESCAPE="HTML"></line>
               <column><TMPL_VAR NAME="column" ESCAPE="HTML"></column>
-              <message><a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="message_text" ESCAPE="HTML"></a></message>
+              <message><TMPL_VAR NAME="message_text" ESCAPE="HTML"></message>
+              <longmessage><a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="message_text" ESCAPE="HTML"></a></longmessage>
       </info>
       </TMPL_LOOP>
       <TMPL_UNLESS NAME="is_wf">

Received on Friday, 22 September 2006 07:38:53 UTC