@Test public void testXslt() { URL wadlUrl = this.getClass().getResource("/eapplication.wadl"); URL xsltUrl = this.getClass().getResource("/wadl.xsl"); try { xslt.transform(new File(wadlUrl.toURI()), new File(xsltUrl.toURI()), "target/out.html"); } catch (URISyntaxException e) { e.printStackTrace(); } }
public void transform(File wadlFile, File xsltFile, String outputFile) { try { Document wadlDoc = handler.parseDocument(wadlFile); handler.serializeDocumentToHtml(wadlDoc, new File(outputFile), xsltFile); } catch (DocumentManipulatorException e) { LOG.warn(e.getMessage()); } }
XslTransformDocument { public void transform(File wadlFile, File xsltFile, String outputFile) { try { Document wadlDoc = handler.parseDocument(wadlFile); handler.serializeDocumentToHtml(wadlDoc, new File(outputFile), xsltFile); } catch (DocumentManipulatorException e) { LOG.warn(e.getMessage()); } } }
XslTransformDocument { public void transform(File wadlFile, File xsltFile, String outputFile) { try { Document wadlDoc = handler.parseDocument(wadlFile); handler.serializeDocumentToHtml(wadlDoc, new File(outputFile), xsltFile); } catch (DocumentManipulatorException e) { LOG.warn(e.getMessage()); } } XslTransformDocument(); }
XslTransformDocument { public void transform(File wadlFile, File xsltFile, String outputFile) { try { Document wadlDoc = handler.parseDocument(wadlFile); handler.serializeDocumentToHtml(wadlDoc, new File(outputFile), xsltFile); } catch (DocumentManipulatorException e) { LOG.warn(e.getMessage()); } } XslTransformDocument(); void transform(File wadlFile, File xsltFile, String outputFile); static void main(String[] args); }
XslTransformDocument { public void transform(File wadlFile, File xsltFile, String outputFile) { try { Document wadlDoc = handler.parseDocument(wadlFile); handler.serializeDocumentToHtml(wadlDoc, new File(outputFile), xsltFile); } catch (DocumentManipulatorException e) { LOG.warn(e.getMessage()); } } XslTransformDocument(); void transform(File wadlFile, File xsltFile, String outputFile); static void main(String[] args);  }