W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2008

validator/share/templates/en_US json_ouput.tmpl,NONE,1.1

From: Karl Dubost via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 14 Jul 2008 03:10:00 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1KIERs-0002fI-Fp@lionel-hutz.w3.org>

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

Added Files:
	json_ouput.tmpl 
Log Message:
first attempt at a JSON output template

--- NEW FILE: json_ouput.tmpl ---
Content-Type: application/json; charset=UTF-8
X-W3C-Validator-Recursion: <TMPL_VAR NAME="depth" DEFAULT="1"><TMPL_IF NAME="fatal_error">
X-W3C-Validator-Status: Abort<TMPL_ELSE><TMPL_IF NAME="valid_status">
X-W3C-Validator-Status: <TMPL_VAR NAME="valid_status"></TMPL_IF>
X-W3C-Validator-Errors: <TMPL_VAR NAME="valid_errors_num">
X-W3C-Validator-Warnings: <TMPL_VAR NAME="valid_warnings_num"></TMPL_IF>


{
    "url": "<TMPL_VAR NAME="file_uri">",
    "messages": [
        <TMPL_LOOP NAME="file_errors">
          {
              <TMPL_IF NAME="err_type_err">"type": "error",</TMPL_IF>
              <TMPL_IF NAME="err_type_warn">"type": "warning",</TMPL_IF>
              "lastLine": "<TMPL_VAR NAME="line">",
              "firstColumn": "<TMPL_VAR NAME="char">",
              "message": "<TMPL_VAR NAME="msg">",
              "messageid": "<TMPL_VAR NAME="num">",
              "explanation": "<TMPL_VAR NAME="expl">",
              "extract":"<TMPL_VAR NAME="src">"
          }
        </TMPL_LOOP>
        
        ],
    "source": {
        "encoding": "<TMPL_VAR NAME="file_charset">"
    }
}
Received on Monday, 14 July 2008 03:10:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 14 July 2008 03:10:37 GMT