assert myStylesheet!=null;
OutputStream out = null;
try {
out = new FileOutputStream(state.outputFile);
state.driver.setOutputStream(out);
TransformerHandler stylesheetHandler = createHandler(myStylesheet
.getUrl().toString());
// SAXTransformerFactory factory = getTransformerFactory();
// TransformerHandler stylesheetHandler =
// factory.newTransformerHandler();
// Transformer transformer =
// stylesheetHandler.getTransformer();
// transformer.setOutputProperty(OutputKeys.ENCODING,
// "UTF-8");
// transformer.setOutputProperty(OutputKeys.INDENT, "yes");
// transformer.setOutputProperty(
// "{http://xml.apache.org/xslt}indent-amount", "4");
stylesheetHandler.setResult(new SAXResult(state.driver
.getContentHandler()));
// stylesheetHandler.setResult(new
// StreamResult(System.out));
exportProject(state, stylesheetHandler);
resultFiles.add(state.outputFile);