From: Bil Kleb Date: 2004-12-29T22:51:46+09:00 Subject: Re: HTML and CSS validation Bil Kleb wrote: > James Britt wrote: >> >> I don't have any suggestions for CSS (though I believe their are >> Web-based validators out there someplace), but for local validation I >> sometimes use RXP. [..] >> >> http://www.cogsci.ed.ac.uk/~richard/rxp.html > > Hmm. Thanks, I'll take a look. After corresponding with RXP's author, this is what I am currently using to validate my HTML without a network connection: htmlfiles.each do |file| result = `rxp -sD html file://html-v4.01-strict.dtd #{file} 2>&1` $stderr.puts result if result.empty? end Note: the lame '2>&1' hack to capture standard error. To be more general, I'd remove the -D mess and make a XML catalog of local DTDs and point to it with the XML_CATALOG_FILES environment variable. An example catalog is available at http://www.cogsci.ed.ac.uk/~richard/example-catalog.xml Regards, -- Bil Kleb, Hampton, Virginia http://fun3d.larc.nasa.gov