validator/share/templates/en_US ucn_output.tmpl,NONE,1.1 ucn_warnings.tmpl,NONE,1.1

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

Added Files:
	ucn_output.tmpl ucn_warnings.tmpl 
Log Message:
Adding "Unicorn" (experimental) output format. 
See http://www.w3.org/QA/2006/obs_framework/



--- NEW FILE: ucn_warnings.tmpl ---
<TMPL_IF NAME="W01">
  <warning><message>Missing "charset" attribute for
    "<TMPL_VAR NAME="W01_ct" ESCAPE="HTML">" document.</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W02">
  <warning><message>No Character Encoding Found!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W03">
  <warning><message>Character Encoding Override in effect!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W04">
  <warning><message>No Character Encoding Found!
    <TMPL_IF NAME="W04_override">
      Using
    <TMPL_ELSE>
      Falling back to 
    </TMPL_IF>
    <TMPL_IF NAME="W04_charset"><TMPL_VAR NAME="W04_charset" ESCAPE="HTML"><TMPL_ELSE>UTF-8</TMPL_IF>.
  </message></warning>
</TMPL_IF>
<TMPL_IF NAME="W05">
  <warning><message>DOCTYPE Override in effect!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W06">
  <warning><message>Unable to Determine Parse Mode!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W07">
  <warning><message>Contradictory Parse Modes Detected!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W08">
  <warning><message>Unknown Parse Mode!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W09">
  <warning><message>No DOCTYPE found! Attempting validation with <TMPL_VAR NAME="W09_dtd" ESCAPE="HTML">.</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W10">
  <warning><message>Unknown Namespace Found</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W11">
  <warning><message>Namespace Found in non-XML Document</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W12">
  <warning><message>No Namespace Found</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W13">
  <warning><message>DOCTYPE Override in effect!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W14">
  <warning><message>No DOCTYPE Found!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W15">
  <warning><message>DOCTYPE Override in effect!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W16">
  <warning><message>No DOCTYPE Found! Falling Back to
    <TMPL_VAR NAME="W16_dtd" ESCAPE="HTML">.</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W17">
  <warning><message>No Character Encoding detected!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W18">
  <warning><message>Character Encoding mismatch!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W19">
  <warning><message>Character Encoding mismatch!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W20">
  <warning><message>Character Encoding mismatch!</message></warning>
</TMPL_IF>
<TMPL_IF NAME="W21">
  <warning><message>Byte-Order Mark found in UTF-8 File.</message></warning>
</TMPL_IF>

<TMPL_IF NAME="W@@">
  <warning><message></message></warning>
</TMPL_IF>


--- NEW FILE: ucn_output.tmpl ---
Content-Type: application/xml; charset=UTF-8
X-W3C-Validator-Status: <TMPL_VAR NAME="valid_status">
X-W3C-Validator-Errors: <TMPL_VAR NAME="number_of_errors">

<?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/unicorn/observationresponse file:/home/jean/observer-response.xsd">
    <uri><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></uri>
    <checkedby><TMPL_VAR NAME="cfg_home_page" ESCAPE="HTML"></checkedby>
    <passed><TMPL_IF NAME="VALID">true<TMPL_ELSE>false</TMPL_IF></passed>
    <result>
      <errors>
	<errorcount><TMPL_VAR NAME="valid_errors_num"></errorcount>
	<errorlist>
	  <uri><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></uri>
	  <TMPL_LOOP NAME="file_errors"><TMPL_IF NAME="err_type_err">
	    <error>
	      <line><TMPL_VAR NAME="line"></line>
	      <column><TMPL_VAR NAME="char"></column>
	      <message><TMPL_VAR NAME="msg" ESCAPE="HTML"></message>
	      <longmessage><TMPL_IF NAME="expl"><TMPL_VAR NAME="expl"></TMPL_IF></longmessage>
	    </error>
	  </TMPL_IF></TMPL_LOOP>
	</errorlist>
      </errors>
    <warnings>
      <warningcount><TMPL_VAR NAME="valid_warnings_num"></warningcount>
      <warninglist>
	<uri><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></uri>
        <TMPL_IF NAME="have_warnings"><TMPL_INCLUDE NAME="soap_warnings.tmpl"></TMPL_IF>
	<TMPL_LOOP NAME="file_errors"><TMPL_IF NAME="err_type_warn">
	  <warning>
	    <line><TMPL_VAR NAME="line"></line>
	    <column><TMPL_VAR NAME="char"></column>
	    <message><TMPL_VAR NAME="msg" ESCAPE="HTML"></message>
	    <longmessage><TMPL_IF NAME="expl">""<TMPL_VAR NAME="expl"></TMPL_IF></longmessage>
	  </warning>
	</TMPL_IF></TMPL_LOOP>
      </warninglist>
    </warnings>
  <TMPL_IF NAME="VALID">
    <informations>
      <infocount>1</infocount>
      <infolist>
	<uri><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></uri>
	<info>
	  <message>This Page Is Valid <TMPL_VAR NAME="file_version" ESCAPE="HTML">!</message>
	  <longmessage>
	    <TMPL_IF NAME="have_badge">
		<img src="<TMPL_VAR NAME="badge_uri" ESCAPE="HTML">" alt="Valid <TMPL_VAR NAME="file_version" ESCAPE="HTML">"/>
	    </TMPL_IF>
	  </longmessage>
	  <longmessage>
	    <TMPL_IF NAME="is_upload">
	      The uploaded document &quot;<TMPL_VAR NAME="file_uri" ESCAPE="HTML">&quot;
	      <TMPL_ELSE>
		The document located at
		<a href="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">"><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></a>
	      </TMPL_IF>
	      <TMPL_IF NAME="is_tentative">
		was checked and found to be &lt;em&gt;tentatively&lt;/em&gt; valid <TMPL_VAR NAME="file_version" ESCAPE="HTML">.
		This means that with the use of some fallback or override mechanism, 
		we successfully performed a formal validation using an SGML or XML 
		Parser. In other words, the document would validate as 
		<TMPL_VAR NAME="file_version" ESCAPE="HTML"> if you changed the markup
		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
		  <TMPL_VAR NAME="file_version" ESCAPE="HTML">.  This means that the
		  resource in question identified itself as
		  &quot;<TMPL_VAR NAME="file_version" ESCAPE="HTML">&quot; and that we successfully
		  performed a formal validation using an SGML or XML Parser (depending on
		  the markup language used).
		</TMPL_IF>
	  </longmessage>
	  <longmessage>
		To show your readers that you have taken the care to create an
		interoperable Web page, you may display this icon on any page
		that validates. Here is the HTML you could use to add this icon
		to your Web page:
	    </longmessage>
	    <longmessage>
	    <TMPL_IF NAME="have_badge">
	      <code>
&lt;p&gt;
  &lt;a href="<TMPL_VAR NAME="cfg_home_page" ESCAPE="HTML">check?uri=referer"&gt;
    &lt;img src=&quot;<TMPL_VAR NAME="badge_uri" ESCAPE="HTML">&quot;
            <TMPL_IF NAME="badge_alt">alt=&quot;<TMPL_VAR NAME="badge_alt" ESCAPE="HTML">&quot;</TMPL_IF> <TMPL_IF NAME="badge_h">height=&quot;<TMPL_VAR NAME="badge_h">&quot;</TMPL_IF> <TMPL_IF NAME="badge_w">width=&quot;<TMPL_VAR NAME="badge_w">&quot;</TMPL_IF><TMPL_VAR NAME="badge_tagc">&gt;
 &lt;/a&gt;
&lt;/p&gt;
  	        </code>
	      </TMPL_IF>
	      </longmessage>
	      <longmessage>
	      <TMPL_IF NAME="have_badge">
		If you like, you can download a copy of this image (in
		<a href="<TMPL_VAR NAME="badge_uri" ESCAPE="HTML">.png">PNG</a> or
		<a href="<TMPL_VAR NAME="badge_uri" ESCAPE="HTML">.gif">GIF</a>
		format) to keep in your local web directory, and change the HTML fragment
		above to reference your local image rather than the one on this server.
	    </TMPL_IF>
	    <TMPL_UNLESS NAME="is_upload">		
		If you would like to create a link to this page (i.e., this
		validation result) to make it easier to revalidate this page in the
		future or to allow others to validate your page, the URI is
		<a href="<TMPL_VAR NAME="file_thispage" ESCAPE="HTML">"><TMPL_VAR NAME="file_thispage" ESCAPE="HTML"></a>
		(or you can just add the current page to your bookmarks or hotlist).		
	    </TMPL_UNLESS>
	  </longmessage>
	</info>
      </infolist>
    </informations>
  </TMPL_IF>
  </result>
</observationresponse>

Received on Tuesday, 1 August 2006 06:11:09 UTC