Thanks for your email. I shall try and upgrade the version. How would I remove the dependency on DOM? What would be the alternative? File parsing?It rather depends where the data comes from. If you are building a DOM specially in order to pass it to Saxon, that's already very inefficient and it would be much better to pass a file or a SAX event stream. If the DOM exists because your application needed the data in this form, then Saxon 6.x. is going to copy the whole DOM into its own internal tree format, and it won't be any slower if you do this process yourself, typically by generating a SAX stream from the DOM and passing the SAX stream to Saxon.Hopefully this won't be necessary, because Saxon 6.5.5 was tested with the DOM implementations in JDK 1.4 and 1.5. But this could well be the source of the problem, since DOM implementations have varied considerably from one Java release to the next.Michael Kayhttp://www.saxonica.com/Prabhu
From: Michael Kay [mailto:firstname.lastname@example.org]
Sent: Monday, March 27, 2006 12:53 PM
To: Chandrasekhar, Prabhu
Subject: RE: Saxon and Weblogic 8.1 compatibility issues?Saxon 6.4.3 is nearly five years old (released 2001-07-13) and there have been many bugs fixed since then; there have also been many changes to Java, JAXP, and DOM, some of them introducing incompatibilities with the versions that were current when 6.4.3 was tested. Your first step should therefore be to move to Saxon 6.5.5.If that doesn't fix the problem we'll have to start investigating. It won't be easy, because I don't have the ability to test under Weblogic.I notice that you're taking input from a DOM. That's always been one of the less reliable features in Saxon because of the differences between different DOM implementations and versions. It might be worth changing the code to remove this dependency on DOM, if only to see whether this fixes the problem.Michael Kay
From: Chandrasekhar, Prabhu [mailto:email@example.com]
Sent: 27 March 2006 18:16
Subject: Saxon and Weblogic 8.1 compatibility issues?
I have used Saxon 6.4.3 parser with Tomcat and Apache server and I used this snippet of code to transform a DOM to XML using a stylesheet
TransformerFactory tfact = TransformerFactory.newInstance();
Transformer trans = null;
if (styleSheetName == null)//null transformation to result
trans = tfact.newTransformer();
trans.transform(new DOMSource((Node) dom), new StreamResult (bResultWriter));
else //apply stylesheet
System.out.println("Stylesheet = " + styleSheetName);
StreamSource styleSource = new StreamSource(new File(styleSheetName));
trans = tfact.newTransformer(styleSource);
trans.transform(new DOMSource((Node)dom),new StreamResult(bResultWriter));
Everything was fine but we have decided to use an enterprise level server and so we are migrating all pieces of code to Weblogic 8.1 SP5. However, this segment of code runs smoothly (no error reports or stacktraces) but for some reason the XSLT would not parse it correctly. It loses the node structure and gives out only a string object. It loses all the start and end tags and only the value of the attributes. Am I doing something wrong or do I need to change something?
Thanks for your help
Sr. Programmer, Analytika
Dendrite International, Inc.
Phone: 919-549-0270 ext. 4867