if (parser == null) {
MessageHandler.errorln("ERROR: Unable to create SAX parser");
System.exit(1);
}
XSLProcessor xslProcessor = new XSLProcessorImpl();
xslProcessor.setParser(parser);
try {
xslProcessor.loadStylesheet(fileInputSource(args[1]));
XTDriver driver = new XTDriver();
driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",
version);
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");