xslStream = new FileInputStream(stylesheet);
fis = new FileInputStream(infile);
fos = new FileOutputStream(outfile);
// systemid such as file:/// + getAbsolutePath() are considered
// invalid here...
XSLTInputSource xslSheet = new XSLTInputSource(xslStream);
xslSheet.setSystemId(stylesheet.getAbsolutePath());
XSLTInputSource src = new XSLTInputSource(fis);
src.setSystemId(infile.getAbsolutePath());
XSLTResultTarget res = new XSLTResultTarget(fos);
processor.process(src, xslSheet, res);
} finally {
// make sure to close all handles, otherwise the garbage
// collector will close them...whenever possible and