I am using xalan2.2.1
I am using <redirect> extension to create multiple output files. I don't want to specify any outputfile name(Result) in the transform method, as i want <redirect> to create multiple output files.
I am getting following problems.
1. if I use this,
transformer.transform(new DOMSource(doc),new DOMResult() );
I am getting this exception:
javax.xml.transform.TransformerException: org.xml.sax.SAXException: Can't have more than one root on a DOM!
javax.xml.transform.TransformerException: org.xml.sax.SAXException: Can't have more than one root on a DOM!
2. If i use this,
transformerImpl.transform(new DOMSource(doc),new StreamResult() );
I got this exception:
javax.xml.transform.TransformerException: No output specified
3. If i use this,
transformerImpl.transform(new DOMSource(doc),new StreamResult("dummy.txt") );
then I got the correct results, But I don't want to use this option as it is creating one dummy.txt file which I don't want.
I am ready to send my XSL file if anyone is interested.
Any help or pointers in this regard, will be appreciated.
Any help or pointers in this regard, will be appreciated.
Regards,
Peter
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
