I am attaching a partial patch (see below for explanation of
partial)
along with sample files, I hope others here can help finish
this.
Goal: Produce well-formed XHTML.
What I have Fixed:
0) Ensure all tagnames are lower case.
1) Emit correct doctype and xhtml namespace.
2) Emit /> to close meta tags.
3) Emit </li> to close bullets (not all cases covered)
4) Ensured that all attribute values are quoted.
ToDo:
A) Emit closing li tags in all cases.
B) Emit closing </p> to close paragraphs.
C) Ensure that author and date bits on the bottom are wrapped in
a <p class="xxx">...</p>
where xxx is author or date as appropriate.