validator/share/templates/en_US earl_n3.tmpl,NONE,1.1.2.2 earl_xml.tmpl,NONE,1.1.2.2 soap_fault.tmpl,NONE,1.2.2.2 soap_output.tmpl,NONE,1.6.2.2 soap_warnings.tmpl,NONE,1.1.2.2 ucn_output.tmpl,NONE,1.5.2.2 ucn_warnings.tmpl,NONE,1.1.2.2 xml_output.tmpl,NONE,1.1.2.2

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

Added Files:
      Tag: validator-0_7-branch
	earl_n3.tmpl earl_xml.tmpl soap_fault.tmpl soap_output.tmpl 
	soap_warnings.tmpl ucn_output.tmpl ucn_warnings.tmpl 
	xml_output.tmpl 
Log Message:
* moving all outputs to templates instead of inline code
* adding ucn and soap12 outputs as experimental additions
  ( will allow us to plug unicorn to main validator, and also let people 
  actually develop libraries for these outputs)
* deprecating homegrown xml format (in documentation, needs to be in the changelog and announce)

These involve some heavy porting of code from CVS HEAD to 0.7 branch, needs some testing.



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

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


--- NEW FILE: soap_fault.tmpl ---
Content-Type: application/soap+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"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
            xmlns:m='http://www.w3.org/2005/10/markup-validator'>
  <env:Body>
   <env:Fault>
     <env:Code>
       <env:Value>env:Sender</env:Value>
       <env:Subcode>
        <env:Value>m:Exception</env:Value>
       </env:Subcode>
     </env:Code>

<TMPL_IF NAME="fatal_transcode_error">
     <env:Reason>
	<env:Text xml:lang="en-US">Transcode Error</env:Text>
     </env:Reason>
     <env:Detail>
	<m:errordetail xml:lang="en-US">
        A fatal error occurred when attempting to transcode the character
        encoding of the document. Either we do not support this character
        encoding ("<TMPL_VAR NAME="fatal_transcode_charset" ESCAPE="HTML">")
        yet, or you have specified a non-existent character encoding (often
        a misspelling).
        The error was: "<TMPL_VAR NAME="fatal_transcode_errmsg">".
        </m:errordetail>
    </env:Detail>
</TMPL_IF>

<TMPL_IF NAME="fatal_byte_error">
     <env:Reason>
	<env:Text xml:lang="en-US">Incorrect Bytes detected</env:Text>
     </env:Reason>
     <env:Detail>
	<m:errordetail xml:lang="en-US">
        Sorry, I am unable to validate this document because on line
        <TMPL_VAR NAME="fatal_byte_lines">.
        it contained one or more bytes that I cannot interpret as
        <TMPL_VAR NAME="fatal_byte_charset" ESCAPE="HTML">
        (in other words, the bytes found are not valid values in the specified
        Character Encoding). Please check both the content of the file and the
        character encoding indication.
	</m:errordetail>
     </env:Detail>
</TMPL_IF>

<TMPL_IF NAME="fatal_uri_error">
     <env:Reason>
        <env:Text xml:lang="en-US">URL scheme not supported</env:Text>
     </env:Reason>
     <env:Detail>
        <m:errordetail xml:lang="en-US">
        Sorry, this type of URL scheme
        (<TMPL_VAR NAME="fatal_uri_scheme" ESCAPE="HTML">) is not
        supported by this service. Please check that you entered the URL correctly.
        </m:errordetail>
     </env:Detail>
</TMPL_IF>
<TMPL_IF NAME="fatal_no_content">
     <env:Reason>
        <env:Text xml:lang="en-US">No Content to validate</env:Text>
     </env:Reason>
     <env:Detail>
        <m:errordetail xml:lang="en-US">
        Sorry, I could not find any content to validate. It is probable that you
        clicked on the "check" button without choosing a URL, a file or entering
        the content of the document you would like to validate.
        </m:errordetail>
     </env:Detail>
</TMPL_IF>

<TMPL_IF NAME="fatal_ip_error">
     <env:Reason>
        <env:Text xml:lang="en-US">IP not public</env:Text>
     </env:Reason>
     <env:Detail>
        <m:errordetail xml:lang="en-US">
        Sorry, the IP address <TMPL_IF NAME="fatal_ip_hostname">of</TMPL_IF>
        <TMPL_VAR NAME="fatal_ip_host"> is not public.
        For security reasons, validating resources located at non-public IP
        addresses has been disabled in this service.
	</m:errordetail>
     </env:Detail>
</TMPL_IF>

<TMPL_IF NAME="fatal_http_error">
     <env:Reason>
        <env:Text xml:lang="en-US">HTTP Error</env:Text>
     </env:Reason>
     <env:Detail>
        <m:errordetail xml:lang="en-US">
    Unexpected HTTP response 
    <TMPL_VAR NAME="fatal_http_code" ESCAPE="HTML"> <TMPL_VAR NAME="fatal_http_msg" ESCAPE="HTML">
    while trying to retrieve <TMPL_VAR NAME="fatal_http_uri" ESCAPE="HTML">.
  <TMPL_IF NAME="fatal_http_dns">
    If you made recent changes to your domain name (DNS) configuration, you may
    also want to <a href="http://www.squish.net/dnscheck/">check that your
    domain records are correct</a>, or ask your hosting company to do so.
  </TMPL_IF>
       </m:errordetail>
     </env:Detail>
</TMPL_IF>

<TMPL_IF NAME="fatal_mime_error">
     <env:Reason>
        <env:Text xml:lang="en-US">unsupported or unrecognized Content Type</env:Text>
     </env:Reason>
     <env:Detail>
        <m:errordetail xml:lang="en-US">
        Sorry, I am unable to validate this document because its content type
        is <TMPL_VAR NAME="fatal_mime_ct" ESCAPE="HTML">, which is
        not currently supported by this service.
       </m:errordetail>
     </env:Detail>
</TMPL_IF>

<TMPL_IF NAME="fatal_parse_extid_error">
     <env:Reason>
        <env:Text xml:lang="en-US">
      Fatal Error: <TMPL_VAR NAME="fatal_parse_extid_msg" ESCAPE="HTML"></env:Text>
     </env:Reason>
     <env:Detail>
        <m:errordetail xml:lang="en-US">
        I could not parse this document, because it makes reference to a
        system-specific file instead of using a well-known public identifier
        to specify the type of markup being used.</m:errordetail>
     </env:Detail>
</TMPL_IF>

<TMPL_IF NAME="fatal_referer_error">
    <env:Reason>
        <env:Text xml:lang="en-US">
        No Referer header found!
</env:Text>
     </env:Reason>
     <env:Detail>
        <m:errordetail xml:lang="en-US">
          You have requested we check the referring page, but your browser did
          not send the HTTP "Referer" header field. This can be for several
          reasons, but most commonly it is because your browser does not
          know about this header, has been configured not to send one, or is
          behind a proxy or firewall that strips it out of the request before
          it reaches us.
	</m:errordetail>
     </env:Detail>

</TMPL_IF>

   </env:Fault>
 </env:Body>
</env:Envelope>

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

@prefix earl: <http://www.w3.org/2001/03/earl/1.0-test#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix val: <http://validator.w3.org/this_will_change/do_not_rely_on_it!> .

<http://validator.w3.org/> a earl:Assertor;
  earl:name "W3 Validator";
  earl:asserts
<TMPL_IF NAME="VALID">
    [
      earl:testMode earl:Auto;
      rdf:predicate earl:passes;
      rdf:subject   [earl:testSubject <<TMPL_VAR NAME="file_uri">>];
      rdf:object    [
                      earl:id <http://www.w3.org/HTML/>;
                      earl:note "Valid"
                    ]
    ]
<TMPL_ELSE>
<TMPL_LOOP NAME="file_errors">
    [
      earl:testMode earl:Auto;
      rdf:predicate earl:fails;
      rdf:subject [
                    val:column "<TMPL_VAR NAME="char">";
                    val:line   "<TMPL_VAR NAME="line">";
                    earl:testSubject <<TMPL_VAR NAME="file_uri">>
                  ];
      rdf:object [
                   earl:id <http://www.w3.org/HTML/>;
                   earl:note """<TMPL_VAR NAME="msg">"""
                 ]
<TMPL_IF __last__>
    ]
<TMPL_ELSE>
    ],
</TMPL_IF>
</TMPL_LOOP>
</TMPL_IF>

.

# EOF

--- NEW FILE: xml_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"?>
<!--
  FIXME: text/xsl is not a registered media type
-->
<?xml-stylesheet type="text/xsl" href="xml-results.xsl"?>

<!--
  This interface is highly experimental and the output *will* change
  (probably even several times) before finished. Do *not* rely on it!
  See http://validator.w3.org/docs/users.html#api-warning
-->

<!DOCTYPE result [
  <!ELEMENT result (meta, warnings?, messages?)>
  <!ATTLIST result
    version CDATA #FIXED '0.9.1'
  >

  <!ELEMENT meta (uri, modified, server, size, encoding, doctype, errors)>
  <!ELEMENT uri      (#PCDATA)>
  <!ELEMENT modified (#PCDATA)>
  <!ELEMENT server   (#PCDATA)>
  <!ELEMENT size     (#PCDATA)>
  <!ELEMENT encoding (#PCDATA)>
  <!ELEMENT doctype  (#PCDATA)>
  <!ELEMENT errors   (#PCDATA)>

  <!ELEMENT warnings (warning)+>
  <!ELEMENT warning  (#PCDATA)>

  <!ELEMENT messages (msg)*>
  <!ELEMENT msg      (#PCDATA)>
  <!ATTLIST msg
    line   CDATA #IMPLIED
    col    CDATA #IMPLIED
    offset CDATA #IMPLIED
  >
]>

<result>
  <meta>
    <uri><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></uri>
    <modified><TMPL_VAR NAME="file_modified" ESCAPE="HTML"></modified>
    <server><TMPL_VAR NAME="file_server" ESCAPE="HTML"></server>
    <size><TMPL_VAR NAME="file_size" ESCAPE="HTML"></size>
    <encoding><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></encoding>
    <doctype><TMPL_VAR NAME="file_doctype" ESCAPE="HTML"></doctype>
    <errors><TMPL_VAR NAME="number_of_errors" ESCAPE="HTML"></errors>
  </meta>

  <warnings>
<TMPL_LOOP NAME="file_warnings">
    <warning><TMPL_VAR NAME="Message" ESCAPE="HTML"></warning>
</TMPL_LOOP>
  </warnings>

  <messages>
<TMPL_LOOP NAME="file_errors">
    <msg line="<TMPL_VAR NAME="line" ESCAPE="HTML">"
         col="<TMPL_VAR NAME="char" ESCAPE="HTML">"
    ><TMPL_VAR NAME="msg" ESCAPE="HTML"></msg>
</TMPL_LOOP>
  </messages>

</result>

--- 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: earl_xml.tmpl ---
Content-Type: application/rdf+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"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://www.w3.org/2001/03/earl/1.0-test#"
  xmlns:val="http://validator.w3.org/this_will_change/do_not_rely_on_it!">

  <Assertor rdf:about="http://validator.w3.org/">
    <name>W3 Validator</name>
    <contactInfo rdf:resource="http://validator.w3.org/about.html"/>
    <testMode rdf:resource="http://www.w3.org/2001/03/earl/1.00#Auto" />

<TMPL_IF NAME="VALID">
  <asserts>
   <Assertion>
    <subject rdf:resource="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" />
    <result rdf:resource="http://www.w3.org/2001/03/earl/1.00#passes" />
    <testCase rdf:resource="http://www.w3.org/MarkUp/" />
    <note>Valid!</note>
   </Assertion>
  </asserts>
<TMPL_ELSE>

  <asserts>
   <Assertion rdf:ID="result">
    <subject rdf:resource="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" />
    <result rdf:resource="http://www.w3.org/2001/03/earl/1.00#fails" />
    <testCase rdf:resource="http://www.w3.org/MarkUp/" />
    <note>Invalid!</note>
   </Assertion>
  </asserts>

<TMPL_LOOP NAME="file_errors">
    <asserts>
      <Assertion rdf:ID="err<TMPL_VAR NAME="__counter__" ESCAPE="HTML">">
        <subject rdf:parseType="Resource">
          <reprOf rdf:resource="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">"/>
          <val:line><TMPL_VAR NAME="line" ESCAPE="HTML"></val:line>
          <val:column><TMPL_VAR NAME="char" ESCAPE="HTML"></val:column>
        </subject>
        <result rdf:resource="http://www.w3.org/2003/03/earl/1.00#fails" />
        <testCase rdf:resource="http://www.w3.org/Markup/" />
        <note><TMPL_VAR NAME="msg" ESCAPE="HTML"></note>
      </Assertion>
    </asserts>
</TMPL_LOOP>
</TMPL_IF>

  </Assertor>
</rdf:RDF>


--- 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 http://www.w3.org/QA/2006/obs_framework/response/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>
	 	  <context><TMPL_VAR NAME="src"></context>
    <longmessage>
		<p><a href="http://validator.w3.org/docs/errors.html#ve-<TMPL_VAR NAME="num">">Details...</a></p>
	</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>
    	<context><TMPL_VAR NAME="src"></context>
	    <longmessage>
			<p><a href="http://validator.w3.org/docs/errors.html#ve-<TMPL_VAR NAME="num">">Details...</a></p>
	    </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>

--- NEW FILE: soap_output.tmpl ---
Content-Type: application/soap+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"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<m:markupvalidationresponse env:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:m="http://www.w3.org/2005/10/markup-validator">
    <m:uri><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></m:uri>
    <m:checkedby><TMPL_VAR NAME="cfg_home_page" ESCAPE="HTML"></m:checkedby>
    <m:doctype><TMPL_VAR NAME="file_doctype" ESCAPE="HTML"></m:doctype>
    <m:charset><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></m:charset>
    <m:validity><TMPL_IF NAME="VALID">true<TMPL_ELSE>false</TMPL_IF></m:validity>
    <m:errors>
        <m:errorcount><TMPL_VAR NAME="valid_errors_num"></m:errorcount>
        <m:errorlist>
          <TMPL_LOOP NAME="file_errors"><TMPL_IF NAME="err_type_err">
            <m:error>
                <m:line><TMPL_VAR NAME="line"></m:line>
                <m:col><TMPL_VAR NAME="char"></m:col>                                           
                <m:message><TMPL_VAR NAME="msg" ESCAPE="HTML"></m:message>
            </m:error>
           </TMPL_IF></TMPL_LOOP>
        </m:errorlist>
    </m:errors>
    <m:warnings>
        <m:warningcount><TMPL_VAR NAME="valid_warnings_num"></m:warningcount>
        <m:warninglist>
        <TMPL_IF NAME="have_warnings"><TMPL_INCLUDE NAME="soap_warnings.tmpl"></TMPL_IF>
        <TMPL_LOOP NAME="file_errors"><TMPL_IF NAME="err_type_warn">
            <m:warning>
                <m:line><TMPL_VAR NAME="line"></m:line>
                <m:col><TMPL_VAR NAME="char"></m:col>                                           
                <m:message><TMPL_VAR NAME="msg" ESCAPE="HTML"></m:message>
            </m:warning>
          </TMPL_IF></TMPL_LOOP>
        </m:warninglist>
    </m:warnings>
</m:markupvalidationresponse>
</env:Body>
</env:Envelope>

Received on Friday, 13 October 2006 07:16:36 UTC