- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 02 Jun 2010 15:34:57 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/perl/modules/W3C/XHTML/HTMLCompatChecker/bin In directory hutz:/tmp/cvs-serv31396/bin Modified Files: appCcheck.pl Log Message: unicorn output updated to use the new schema Index: appCcheck.pl =================================================================== RCS file: /sources/public/perl/modules/W3C/XHTML/HTMLCompatChecker/bin/appCcheck.pl,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- appCcheck.pl 1 Oct 2009 18:25:06 -0000 1.47 +++ appCcheck.pl 2 Jun 2010 15:34:55 -0000 1.48 @@ -96,64 +96,43 @@ my $xml_output_template_text = 'Content-Type: text/xml; charset=UTF-8 -<?xml version="1.0" encoding="UTF-8"?><observationresponse xmlns="http://www.w3.org/unicorn/observationresponse" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/QA/2006/obs_framework/ns/observation/ http://www.w3.org/QA/2006/obs_framework/response/observer-response.xsd"> -<uri><TMPL_VAR NAME="uri" ESCAPE="HTML"></uri> -<passed><TMPL_IF NAME="has_messages">false<TMPL_ELSE>true</TMPL_IF></passed> -<result> -<errors> - <errorcount><TMPL_VAR NAME="error_count" ESCAPE="HTML"></errorcount> - <errorlist> - <uri><TMPL_VAR NAME="uri" ESCAPE="HTML"></uri> - <TMPL_LOOP NAME="error_loop"> - <error> - <line><TMPL_VAR NAME="line" ESCAPE="HTML"></line> - <column><TMPL_VAR NAME="column" ESCAPE="HTML"></column> - <message><TMPL_VAR NAME="message_text" ESCAPE="HTML"></message> - <longmessage>See HTML Compatibility Guideline <TMPL_VAR NAME="cnum" ESCAPE="HTML">: - <a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="guideline_title" ESCAPE="HTML"></a></longmessage> - </error> - </TMPL_LOOP> - </errorlist> -</errors> -<warnings> - <warningcount><TMPL_VAR NAME="warning_count" ESCAPE="HTML"></warningcount> - <warninglist> - <uri><TMPL_VAR NAME="uri" ESCAPE="HTML"></uri> - <TMPL_LOOP NAME="warning_loop"> - <warning> - <line><TMPL_VAR NAME="line" ESCAPE="HTML"></line> - <column><TMPL_VAR NAME="column" ESCAPE="HTML"></column> - <message><TMPL_VAR NAME="message_text" ESCAPE="HTML"></message> - <longmessage>See HTML Compatibility Guideline <TMPL_VAR NAME="cnum" ESCAPE="HTML">: - <a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="guideline_title" ESCAPE="HTML"></a></longmessage> - </warning> - </TMPL_LOOP> - </warninglist> -</warnings> -<informations> - <infocount><TMPL_VAR NAME="info_count" ESCAPE="HTML"></infocount> - <infolist> - <uri><TMPL_VAR NAME="uri" ESCAPE="HTML"></uri> - <TMPL_LOOP NAME="info_loop"> - <info> - <line><TMPL_VAR NAME="line" ESCAPE="HTML"></line> - <column><TMPL_VAR NAME="column" ESCAPE="HTML"></column> - <message><TMPL_VAR NAME="message_text" ESCAPE="HTML"></message> - <longmessage>See HTML Compatibility Guideline <TMPL_VAR NAME="cnum" ESCAPE="HTML">: - <a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="guideline_title" ESCAPE="HTML"></a></longmessage> - </info> - </TMPL_LOOP> - <TMPL_IF NAME="Abort"> - <info> - <message>The document was not checked against HTML Compatibility Guidelines.</message> - <longmessage>Reason: <em><TMPL_VAR NAME="Abort_Message"></em></longmessage> - </info> - </TMPL_IF> - </infolist> -</informations> -</result> +<?xml version="1.0" encoding="UTF-8"?> +<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse" ref="<TMPL_VAR NAME="uri" ESCAPE="HTML">" xml:lang="en"> + +<TMPL_UNLESS NAME="has_messages"> +<status value="passed"/> +</TMPL_UNLESS> + +<TMPL_LOOP NAME="error_loop"> +<message type="error"> + <context line="<TMPL_VAR NAME="line" ESCAPE="HTML">" column="<TMPL_VAR NAME="column" ESCAPE="HTML">"></context> + <title><TMPL_VAR NAME="message_text" ESCAPE="HTML"></title> + <description> + See HTML Compatibility Guideline <TMPL_VAR NAME="cnum" ESCAPE="HTML">: <a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="guideline_title" ESCAPE="HTML"></a> + </description> +</message> +</TMPL_LOOP> + +<TMPL_LOOP NAME="warning_loop"> +<message type="warning"> + <context line="<TMPL_VAR NAME="line" ESCAPE="HTML">" column="<TMPL_VAR NAME="column" ESCAPE="HTML">"></context> + <title><TMPL_VAR NAME="message_text" ESCAPE="HTML"></title> + <description> + See HTML Compatibility Guideline <TMPL_VAR NAME="cnum" ESCAPE="HTML">: <a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="guideline_title" ESCAPE="HTML"></a> + </description> +</message> +</TMPL_LOOP> + +<TMPL_LOOP NAME="info_loop"> +<message type="info"> + <context line="<TMPL_VAR NAME="line" ESCAPE="HTML">" column="<TMPL_VAR NAME="column" ESCAPE="HTML">"></context> + <title><TMPL_VAR NAME="message_text" ESCAPE="HTML"></title> + <description> + See HTML Compatibility Guideline <TMPL_VAR NAME="cnum" ESCAPE="HTML">: <a href="http://www.w3.org/TR/xhtml1/#C_<TMPL_VAR NAME="cnum" ESCAPE="HTML">"><TMPL_VAR NAME="guideline_title" ESCAPE="HTML"></a> + </description> +</message> +</TMPL_LOOP> + </observationresponse> ';
Received on Wednesday, 2 June 2010 15:35:02 UTC