assertNotNull("empty xsl", xslInputStream);
Source xslSource = new StreamSource(xslInputStream);
assertNotNull("get xsl source", xslSource);
// init templates
TRAXTemplates traxTemplates = traxService.getTemplates(xslSource);
assertNotNull("get templates", traxTemplates);
// get transformer
TRAXTransformer traxTransformer = traxTemplates.newTransformer();
assertNotNull("get transformer", traxTransformer);
// transform
traxTransformer.initResult(new StreamResult(byteOutputStream));
traxTransformer.transform(new StreamSource(res));
res.close();
assertTrue("Output is empty", byteOutputStream.size() > 0);
// other transformer from same templates
TRAXTransformer traxOtherTransformer = traxTemplates.newTransformer();
assertNotNull("get Other transformer", traxOtherTransformer);
res = resourceStream("rss-in.xhtml");
assertTrue("Empty input other file", res.available() > 0);