[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wdg-html-validator versus w3c-html-validator

On Fri, 2007-12-14 at 10:45 +0100, David Bremner wrote:
> Hi All;
> I noticed that wdg-html-validator had been orphaned for more than a
> year, and since I use the offline validator script, I filed an ITA
> (http://bugs.debian.org/390833). Now that I look at the logistics of
> packaging it (download 5 files from 5 places, make .orig.tar.gz by
> hand, no watch file) and the fact that it includes CGI, I am a little
> less enthusiastic (this is emphatically not a criticism of Aurelien
> Jarno's packaging work).
> So, some questions:
> 1) If there is another good offline (i.e. shell command) html
> validator in Debian? weblint-perl for (non)-example does not support
> xhtml.

nsgmls (from the sp package) can parse and validate *any* SGML document
(possibly limited by character set support).  Something like:

SGML_CATALOG_FILES=/usr/share/sgml/declaration/xml.soc \
     SP_CHARSET_FIXED=YES SP_ENCODING=XML nsgmls -s -wxml index.html

should work for XML.  /usr/share/doc/sp/xml.htm has more information.


Ben Hutchings
friends: People who know you well, but like you anyway.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: