You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by sn...@us.abb.com on 2002/02/02 00:10:46 UTC
Multiple transformation performance
Hello All:
I am trying to transform lots of xml files to html by creating multiple threads,
one thread for each file.
Somehow the transformation is happening in a serial fashion.
Can someone tell me what can possibly be wrong?
*************************************************************************
Run method of my class which implements Runnable
*************************************************************************
public void run() {
try {
.....
TransformerFactory tFactory = TransformerFactory.newInstance();
Templates translet = tFactory.newTemplates(new
StreamSource(strXmlToHtmlArgs[1]));
Transformer transformer = translet.newTransformer();
transformer.transform(new StreamSource(strXmlToHtmlArgs[0]),
new StreamResult(new
FileOutputStream(strXmlToHtmlArgs[2])));
.......
}
.....
}
Thanks
Snehal A. Shah