Initial work on XHTML document output.
Discovered Error: JUnit tests for HierarchicalText fail now. Need to
fix.