4 messages in com.googlegroups.pylons-discussRe: XHTML Validator Middleware
FromSent OnAttachments
Chris Moos29 Jan 2008 14:26 
Christoph Haas30 Jan 2008 00:49 
Mike Orr30 Jan 2008 10:06 
Chris Moos30 Jan 2008 14:28 
Subject:Re: XHTML Validator Middleware
From:Mike Orr (slug@public.gmane.org)
Date:01/30/2008 10:06:58 AM
List:com.googlegroups.pylons-discuss

On Jan 30, 2008 12:49 AM, Christoph Haas
<email-Nf+wZpSdgwd6//Dw7l@public.gmane.org> wrote:

There's supposed to be an offline version of the W3C validator so that you don't need to query the interweb. Would be great to somehow include that so validation can be done locally.

I looked into this earlier and found two Python modules for it, one using HTML Tidy and the other something else, but both depended on third-party C libraries with horrible installation instructions so I was never able to get them installed. Also, HTML Tidy is designed as a command-line tool and is kludgy to use as a library. What we really need is a pure Python validator, ideally one that gives the same helpful error messages as the W3C validator.