I am transforming an XML document to XHTML using a simple XSLT transform. When I let Xalan output to a file, everything works fine. However, I want the output in a Xerces DOM. I use a FormatterToXercesDOM object to output to the Xerces DOM, then a DOMWriter to output to a file. The output file is correct, except it's missing the DOCTYPE tag. I can manually set it when I create the Xerces DOMDocument, but that kind of defeats the purpose. Is there a way to tell the FormatterToXercesDOM object to put the DOCTYPE tag in the DOM? Or maybe a way to retrieve it from Xalan and set it in the Xerces DOM?

Thanks for any assistance!

Kelly

Reply via email to