Hi Xalan Community,you can find attached the final patch that introduces the support for StAXSource/StAXResult in Xalan.StAXSource support through adapters between StAX and SAX technologies works perfectly.StAXResult support through adapters between SAX and StAX technologies works very well, but there are some limitations:
- When using XMLStreamWriter, it does not write standalone information. The more complete method just write encoding and version information ;
- There is an indentation issue with items that are not inside a <xsl:apply-templates>. This problem also occurs when using pure SAX technologie. I would suggest a revision in the class ToXMLSAXHandler; this class receives notification of SAX-like events, and invoke the equivalent SAX methods to a pure SAX content handler or to the SAX to StAX adapter that implements content handler. Take a look at TransformerImpl::createSerializationHandler(...).I would suggest the use of the Woodstox's implementation for XMLOutputFactory because when I was using the default one, I got the error  when passing the value of the property OutputKeys.ENCODING to the method .Thank you very much for the opportunity to work with you this summer.Sincerely,Samuel Queiroz http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamWriter.html#writeStartDocument(java.lang.String, java.lang.String) javax.xml.stream.XMLStreamException: Underlying stream encoding 'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' do not match.