JDOM -- addProcessingInstruction doesn't work correctly with IE6

I've noticed that when you add a processing instruction that points to an XSL stylesheet the way most JDOM books recommend, you end up with the processing instruction at the bottom of the JDOM-created XML file. The basic high-level code skeleton looks like this: makeRootElt("root"); makeJDOMDoc(); // add processing instruction to document level addProcessingInstruction(xslSheetName); For some reason IE 6 can't handle having the xsl processing instruction at the bottom and renders the XML File in raw mode (just the XML tree without the XSL stylesheet). It's not until I move the xsl processing instruction underneath the main ?xml = 1.0 ... instruction at the top before it works. I've found several posts of this problem but, so far, no solution that works for me... Has anybody run into this problem? I can't seem to juggle the code around so the processing instruction is created in the necessary place. Thanks for any replies. -- Mike