/** * Transforms the given set of xml files with the given XSLT and places the * result into a corresponding HTML file * * @param xmlfiles * @param xsltFile * @param html */ protected void tranformXml(File[] xmlfiles, File xsltFile) { File html = null; for (File xmlfile : xmlfiles) { try { File htmlroot = new File(getHtmlLocation(), getHTMLFileLocation(xmlfile)); if (!htmlroot.exists()) { htmlroot.mkdirs(); } html = new File(getNameFromXMLFilename(xmlfile)); applyXSLT(xsltFile, xmlfile, html); } catch (Exception e) { ApiPlugin.log(e); } } }