After some rather hacky fixes to avoid nested links and empty heading elements, the entire corpus of XHTML documents produced in the static build now validates. The documents don't have any bodies yet, of course, but we are close to beginning work on that.