We are working intensively with Xalan 1.2.x and we have most of the time an input which is a DOM generated from Xerces.
You might now that it is possible to configure Xalan processor to use Xerces DOM as an input.
Suprise! Guess what? Using Xerces DOM for the XSLTInputSource() is a lot slower than when going from the Xerces DOM to an XML serialization in a buffer and to then use that buffer for the XLSTInputSource().
This is because the internal DOM rebuild by Xalan from the buffer is highly optimized: it seams most of the strings are converted to integer and efficient lookup maps are built. This boosts the XSLT processing afterward.
→ my conclusion is: don’t hesitate to XML serialize your DOM before passing it to Xalan.
PS This should hopefully not be needed anymore with Xalan 2?
#webMethods#API-Management#Tamino