I just did my first work on dbcdb in about a month; if I was too sick to program for work, I was too sick to program on my pet projects. What I did was convert dbcdb to generate XHTML instead of plain old HTML. Which was trivial; the hard part was validating it. I still haven’t found a good standalone validator; I ended up running HTML Tidy on my generated output and comparing it to the original (after whitespace munging). But enough munging was necessary that I’m not sure I completely trust that; maybe I’ll end up using the W3C’s web validator instead.
Post Revisions:
- May 5, 2010 @ 20:24:48 [Current Revision] by David Carlton
- October 22, 2005 @ 20:32:11 by David Carlton
For stand-alone validation, use any validating XML parser after snarfing a copy of the appropriate XHTML DTD from W3C. (Don’t just point to it; parsers don’t usually cache, and you’ll hammer w3.org.)
You might also want to try TagSoup (http://www.tagsoup.info) instead of Tidy for transforming HTML into well-formed XML. It’s fast and it never, never gives up or loops. (Toot, toot!)
10/22/2005 @ 10:32 pm