- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 16 May 2007 08:35:17 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/htdocs/docs In directory hutz:/tmp/cvs-serv27603/htdocs/docs Modified Files: api.html Log Message: adding m:explanation, m:source and implementing m:messageid Index: api.html =================================================================== RCS file: /sources/public/validator/htdocs/docs/api.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- api.html 15 Nov 2006 08:02:46 -0000 1.7 +++ api.html 16 May 2007 08:35:15 -0000 1.8 @@ -8,7 +8,7 @@ <h2>Markup Validator Web Service API<br /> SOAP 1.2 validation interface documentation</h2> -<p>Interface applications with the Markup Validator through its <strong>experimental</strong> API. </p> +<p>Interface applications with the Markup Validator through its <strong>experimental</strong> API. This is version 0.2, dated May 2007. For a history of the format, see <a href="#changelog">Change Log</a>.</p> <p><strong>Note</strong>: Please be considerate in using this shared, free resource. Consider <a href="install.html">Installing your own instance of the validator</a> for smooth and fast operation. Excessive use of the W3C Validation Service @@ -25,6 +25,7 @@ <li><a href="#soap12_sample">sample SOAP 1.2 validation response</a></li> <li><a href="#soap12response">SOAP1.2 response format reference</a></li> <li><a href="#soap12message">SOAP1.2 atomic message (error or warning) format reference</a></li> + <li><a href="#changelog">Change Log</a></li> </ul> </li> <li><a href="#libs">Libraries</a></li> @@ -119,6 +120,8 @@ to its SOAP 1.2 interface (experimental for now). Below is a sample response, as well as a description of the most important elements of the response.</p> + + <h4 id="soap12_sample">sample SOAP 1.2 validation response</h4> <p>A SOAP response for the validation of a document (invalid) will look like this:</p> <pre style="font-size: smaller"> @@ -140,6 +143,17 @@ <<a href="#soap12_error">m:error</a>> <<a href="#soap12_line">m:line</a>>13</m:line> <<a href="#soap12_col">m:col</a>>6</m:col> + <<a href="#soap12_source">m:source</a>> + <![CDATA[ + &#60;foo<strong title="Position where error was detected.">&#62;</strong>This phrase is enclosed in a bogus FOO element.&#60;/foo&#62; + ]]> + </m:source> + <<a href="#soap12_explanation">m:explanation</a>> + <![CDATA[ + <p> ... </p<p> + ]]> + </m:explanation> + <<a href="#soap12_messageid">m:messageid</a>>76</m:messageid> <<a href="#soap12_message">m:message</a>>element "foo" undefined</m:message> </m:error> @@ -234,10 +248,31 @@ </tr> <tr> <th id="soap12_messageid">messageid</th> - <td>@@ not implemented yet@@ - should be the number of the error, as addressed internally by the validator</td> + <td>The number/identifier of the error, as addressed internally by the validator</td> +</tr> +<tr> + <th id="soap12_explanation">explanation</th> + <td>Explanation for the error. Given as HTML fragment within CDATA block.</td> +</tr> +<tr> + <th id="soap12_source">source</th> + <td>Snippet of the source where the error was found. Given as HTML fragment within CDATA block.</td> </tr> </table> +<h4 id="changelog">Change Log</h4> +<p>Up to version 0.2, all changes are backward-compatible.</p> +<dl> + <dt>v 0.2 (May 2007)</dt> + <dd><ul> + <li><code>messageid</code> is now implemented</li> + <li>added <code>source</code> and <code>explanation</code> elements.</li> + </ul> + </dd> + <dt>v 0.1</dt> + <dd><p>Initial revision</p> +</dl> + <h3 id="libs">Libraries</h3> <p>Building of libraries used to interact with the validator's API is <a href="http://www.w3.org/QA/2006/10/validator_api.html">encouraged</a>. If you are the maintainer of such a library, <a href="../feedback.html">contact us</a> and we will list it here.</p>
Received on Wednesday, 16 May 2007 08:35:20 UTC