> 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.
Since you can't and don't need to parse a DOM, there is no way to construct
an InputSource from a DOM.
Dave