CompilerInfo info = new CompilerInfo();
info.setURIResolver(config.getURIResolver());
info.setErrorListener(config.getErrorListener());
info.setCompileWithTracing(config.isCompileWithTracing());
PreparedStylesheet pss = PreparedStylesheet.compile(new StreamSource(styleFile), config, info);
transformer = (Controller)pss.newTransformer();
transformer.setInitialMode(initialMode);
transformer.setInitialTemplate(initialTemplate);
if (tracing) {
transformer.addTraceListener(new XSLTTraceListener());
}