I need to combine 2 XML documents into 1 and apply transformation. Half data is in one XML and other half in the other XML. Transformer.transform takes only 1 source. XSLT has document() function but I want to perform transformation on stream. That is component doesn't know anything about files. Is there elegant solution for this.
I don't know if this is what you need, but I wrote a utility to combine multiple chunks of XML formatted text into a single Reader which you can then turn into an InputSource. ( see this article for a description.) You can download the source from my web site.
Bill [ August 02, 2004: Message edited by: William Brogden ]