This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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