From: Nicholas Van Weerdenburg Date: 2004-12-28T15:27:46+09:00 Subject: Re: HTML and CSS validation I read about these tools in the Vim as XML Editor HowTo: http://www.pinkjuice.com/howto/vimxml/ It's an interesting read- there is probably more bash, ruby and xml tools (such as xmllint) then there are vi-specific items. On Tue, 28 Dec 2004 14:00:57 +0900, James Britt wrote: > 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 > > PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > 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 > > -- Nicholas Van Weerdenburg