From: James Britt Date: 2004-12-28T14:00:57+09:00 Subject: Re: HTML and CSS validation Bil Kleb wrote: > John W. Long wrote: >> >> Why not publish them to a development server listening on a different >> port? For example: >> >> http://dev.mywebsite.com:90/ >> >> It could really simplify things for you. > > > The other twist: I'd like to do the validation without > the need for a network connect as I find myself working > offline more and more of late. > > Truth be told: I just want the world! ;) Might be available. xmllint + xmlcatalog (both part of the libxml2 library from xmlsoft.org) allows one to validate against a local DTD without having to munge XML files that already contain a DOCTYPE declaration. The XML catalog lets you map a public identifier (e.g. "-//W3C//DTD XHTML 1.0 Strict//EN") to a (typically local) resource, such that when xmllint encounters a file containing it knows to go fetch some local disk file with the DTD (assuming, of course, you've actually arranged for a copy to be available). I've on;y recently looked at this, so if anyone has some actual practical experience with this, please speak up. But it is relatively simple to run from the command line, and avoids the need to running extra servers or publishing to stealth sites or munging the source XML. (Most of the examples I've seen deal with DocBook, where authors want to validate, and want their source XML to point to the canonical DTD location, but do not want to make a network call on each pass; the XML catalog is quite the cat's meow.) Thanks, James