}
private void genreport(ResolutionCacheManager cache, String organisation, String module)
throws IOException {
// first process the report with xslt
XSLTProcess xslt = new XSLTProcess();
xslt.setTaskName(getTaskName());
xslt.setProject(getProject());
xslt.init();
String resolveId = ResolveOptions.getDefaultResolveId(new ModuleId(organisation, module));
xslt.setIn(cache.getConfigurationResolveReportInCache(resolveId, "default"));
xslt.setOut(new File(todir, outputname + "." + xslext));
xslt.setStyle(xslFile);
XSLTProcess.Param param = xslt.createParam();
param.setName("extension");
param.setExpression(xslext);
// add the provided XSLT parameters
for (Iterator it = params.iterator(); it.hasNext();) {
param = (XSLTProcess.Param) it.next();
XSLTProcess.Param realParam = xslt.createParam();
realParam.setName(param.getName());
realParam.setExpression(param.getExpression());
}
xslt.execute();
}