public static void xsltFromFile(String inFilename, String xslFilename, String outFilename) {
try {
Source sourceInput = new StreamSource(new FileInputStream(inFilename));
Source styleSource = new StreamSource(new FileInputStream(xslFilename));
CompilerInfo compilerInfo = getConfiguration().getDefaultXsltCompilerInfo();
PreparedStylesheet sheet = PreparedStylesheet.compile(styleSource, getConfiguration(), compilerInfo);
Controller controller = (Controller) sheet.newTransformer();
javax.xml.transform.Result result = new StreamResult(new File(outFilename));
try {
controller.transform(sourceInput, result);
} catch (XPathException err) {
if (!err.hasBeenReported()) {