Xhtml fixes

Hi there,
This branch contains a fixes to get the output from wsdl-viewer to validate as XHTML, and to fix some recursion issues I was having with the output.