In moving from Beta 1 to Beta2, the code was changed to use XPathDocument instead of XmlDocument. I understand that it is better to use XPathDocument when doing XSLT processing. Also chose to use XmlTextWriter instead of XmlWriter, and having done that I also added: tXmlTextWriter.Formatting = Formatting.Indented; By making these changes, the HTML comes out nicely formatted.