W3C home > Mailing lists > Public > www-validator@w3.org > October 2006

Re: API Change?

From: Sean B. Palmer <sean@miscoranda.com>
Date: Mon, 30 Oct 2006 14:40:20 +0000
Message-ID: <b6bb4d890610300640t6ad23b6l536073ecc0246138@mail.gmail.com>
To: "David Håsäther" <hasather@gmail.com>
Cc: www-validator@w3.org
> I don't get that

Add ";output=xml" to the URI.

Björn has been kindly going through the Validator source, and I've
been jumping through hoops after him, but all we've managed to work
out is that it's probably some recentish change to number_of_errors
not being the actual number of errors.

Note that the output=html headers are generated by:

X-W3C-Validator-Errors: <TMPL_VAR NAME="valid_errors_num"></TMPL_IF>

Whereas the output=xml headers are generated by:

X-W3C-Validator-Errors: <TMPL_VAR NAME="number_of_errors">

Bringing these in line with one another might be the easiest fix; but
that might have other knock-on ramifications.

It's fun to note a changelog comment for the output=html template from
six months ago reads "output only number, not sentence, in
X-W3C-Validator-Errors header". The reverse change seems to have
happened to the output=xml headers now, of course. Indeed, this is
even more ironic given this message from earlier today on www-archive:

If the API is overkill for you, then here's a hint:
At least these aren't too likely to change, as far as I can tell.
]]] - http://lists.w3.org/Archives/Public/www-archive/2006Oct/0022

It might be a thing to mention that the importance of the robustness
of the Header API may be, I don't know, somehow proportional to how
much SOAP is used in the regular API? :-)

Anyway, I know that the code resembles an oil refinery and that that's
being fixed elsewhere, but an interim fix for this problem would be
most appreciated nonetheless. Calling captain yod!

Yours sleuthingly,

Sean B. Palmer, http://inamidst.com/sbp/
Received on Monday, 30 October 2006 14:40:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:50 UTC