* Gábor Szabó wrote: >Reading the blog of Geoff about the OSCON session >http://www.onlamp.com/pub/wlg/7523 >I just remembered an open issue for me. > >How do you test if an HTML page is in one of the w3 standards ? >There is the w3 validator online at http://validator.w3.org/ but I cannot use >that for my ongoing tests. I need something command line or better >yet somthing like Test::W3 ?
Well, the W3C Markup Validator is just a "thin" wrapper around the OpenSP SGML processor (the onsgmls command line too to be precise), it just does some character encoding detection and deals with mime types and doctypes, other than that it's just a HTML formatter. With my (experimental) HTML::Encoding, HTML::Doctype, SGML::Parser::OpenSP and the (experimental, only in CVS) OpenSP version 1.5.2 you could write a command line tool for that in < 100 lines, see e.g. the script at <http://lists.w3.org/Archives/Public/public-qa-dev/2004Nov/0002>. -- Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/