summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2005-10-11 10:07:44 +0000
committerot <ot@localhost>2005-10-11 10:07:44 +0000
commit07e87837c2c5dbaac5074e2a30e3b988efdb4b38 (patch)
tree53550a2cfa2b7e4b1ab5788cdbb6b1ba3113b008
parentb09c52bde43da3de1f5a2d16683cf3ff513fc9c7 (diff)
downloadmarkup-validator-07e87837c2c5dbaac5074e2a30e3b988efdb4b38.zip
markup-validator-07e87837c2c5dbaac5074e2a30e3b988efdb4b38.tar.gz
markup-validator-07e87837c2c5dbaac5074e2a30e3b988efdb4b38.tar.bz2
Quick take of soap 1.2 output template, based on XSLT provided by Yves.
-rw-r--r--share/templates/en_US/soap_output.tmpl54
1 files changed, 54 insertions, 0 deletions
diff --git a/share/templates/en_US/soap_output.tmpl b/share/templates/en_US/soap_output.tmpl
new file mode 100644
index 0000000..e54881b
--- /dev/null
+++ b/share/templates/en_US/soap_output.tmpl
@@ -0,0 +1,54 @@
+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/2003/10/20-css-validator">
+ <m:uri><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></m:uri>
+ <m:checkedby><TMPL_VAR NAME="file_server" ESCAPE="HTML"></m:checkedby>
+ <m:doctype><TMPL_VAR NAME="file_doctype" ESCAPE="HTML"></m:doctype>
+ <m:validity><TMPL_VAR NAME="valid_status"></m:validity>
+ <m:errors>
+ <m:errorcount></m:errorcount>
+ <m:errorlist>
+ <TMPL_LOOP NAME="file_errors">
+ <m:error>
+ <!-- Line of the current error -->
+ <m:line>
+ <TMPL_VAR NAME="line" ESCAPE="HTML">
+ </m:line>
+ <!-- Column of the current error -->
+ <m:col>
+ <TMPL_VAR NAME="char" ESCAPE="HTML">
+ </m:col>
+ <!-- Offset of the current error -->
+ <m:offset>
+ ???
+ </m:offset>
+ <!-- Textual message of the error -->
+ <m:message>
+ <TMPL_VAR NAME="msg" ESCAPE="HTML">
+ </m:message>
+ </m:error>
+ </TMPL_LOOP>
+ </m:errorlist>
+ </m:errors>
+ <m:warnings>
+ <!-- Number of warnings -->
+ <m:warningcount>
+ <xsl:value-of select="$warningcount"/>
+ </m:warningcount>
+ <!-- List of warnings -->
+ <m:warninglist>
+ <TMPL_LOOP NAME="file_warnings">
+ <m:warning>
+ <TMPL_VAR NAME="Message" ESCAPE="HTML">
+ </m:warning>
+ </TMPL_LOOP>
+ </m:warninglist>
+ </m:warnings>
+</m:markupvalidationresponse>
+</env:Body>
+</env:Envelope>