Hi, finally I found the solution myself: org.apache.xalan.xsltc.trax.DOM2SAX is an XMLReader implementation with "parse(InputSource unused)" InputSource is not used and may be null.
This is exactly what I need! Ciao, Karsten > Hi, > > I'm using XSLT pipe processing with different "InputSource" and "XMLReader" > implementations. Now I try to put a DOM into a pipe, but I didn't find any > class or function to build an "InputSource" or an "XMLReader" from a > "Document" or "Node". > > Here is a snippet of my code: > > public void transformViaPipe(InputSource inSource, > XMLReader xmlReader, > Result xmlResult, > TransformerHandler TransformerHandler1, > TransformerHandler transformerHandler2) > { > ... > xmlReader.setContentHandler(transformerHandler1); > xmlReader.setProperty(SAX_LEXICAL_HANDLER, transformerHandler1); > ... > transformerHandler1.setResult(new SAXResult(transformerHandler2)); > transformerHandler2.setResult(xmlResult); > ... > xmlReader.parse(inSource); > ... > } > > I don't want to serialize the DOM into an other representation, because of > performance and memory issues.