// find XSLT template
final File xsltFile = getTemplateFile(template, language, ".xsl");
if(xsltFile != null) {
try {
final DataTools dataTools = new DataTools();
final String xml = dataTools.write("xml", null, params);
final String html = applyXslt(xsltFile, xml);
return html;
} catch (Exception ex) {
logger.error("Error to apply XSLT template: " + xsltFile);