JDOM -- addProcessingInstruction doesn't work correctly with IE6
Mike London
Ranch Hand
Joined: Jul 12, 2002
Posts: 948
posted
0
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
You're right, it worked!!! Thank you very, very much. I sent the author of the Java/XML book your code which will fix his code listing as well. - Mike
Mike London
Ranch Hand
Joined: Jul 12, 2002
Posts: 948
posted
0
The smiley faces in my posting above were meant to be *just* smiling faces. I didn't realize they stuck their tounges out until after I saw my own posting. Sorry about that ... <s> -- Mike