// We call liason.configure() and then liaison.setStylesheet()
// so that the internal variables of liaison can be set up
if (stylesheet instanceof FileResource) {
File styleFile = ((FileResource) stylesheet).getFile();
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) {