/** * Add a nested <style> element. * @param rc the configured Resources object represented as <style>. * @since Ant 1.7 */ public void addConfiguredStyle(final Resources rc) { if (rc.size() != 1) { handleError( "The style element must be specified with exactly one nested resource."); } else { setXslResource(rc.iterator().next()); } }
private void setXslResource(XSLTProcess task) { Path path = new Path(getProject(), null); Resource resource = new JavaResource(getDefaultName() + ".xsl", path); resource.setProject(getProject()); task.setXslResource(resource); }
private XSLTProcess xsltTask() { XSLTProcess xsltTask = new XSLTProcess(); xsltTask.bindToOwner(task); xsltTask.setClasspath(classpath); xsltTask.setXslResource(getStylesheet()); xsltTask.setIn(((XMLResultAggregator) task).getDestinationFile()); return xsltTask; }
private XSLTProcess xsltTask() { XSLTProcess xsltTask = new XSLTProcess(); xsltTask.bindToOwner(task); xsltTask.setClasspath(classpath); xsltTask.setXslResource(getStylesheet()); xsltTask.setIn(((XMLResultAggregator) task).getDestinationFile()); return xsltTask; }
tempFileTask.bindToOwner(task); xsltTask.setXslResource(getStylesheet());