See https://github.com/oreillymedia/HTMLBook. make xmllinthtmlbook to verify examples/htmlbook.html (requires HTMLBook cloned to parent directory). Not really sure how to use this or if it is useful in practice.