{@inheritDoc}. String systemId = caller.getStylesheetSystemId(); Source xslSrc = new StreamSource(systemId); Transformer tformer = tfactory.newTransformer(xslSrc); Source xmlSrc = new DOMSource(caller.document); OutputStream os = getOutputStream(); try { tformer.setParameter("output.dir", caller.toDir.getAbsolutePath()); Result result = new StreamResult(os); tformer.transform(xmlSrc, result); } finally { os.close(); }
String systemId = caller.getStylesheetSystemId(); Source xslSrc = new StreamSource(systemId); Transformer tformer = tfactory.newTransformer(xslSrc); Source xmlSrc = new DOMSource(caller.document); OutputStream os = getOutputStream(); try { tformer.setParameter("output.dir", caller.toDir.getAbsolutePath()); Result result = new StreamResult(os); tformer.transform(xmlSrc, result); } finally { os.close(); }
{@inheritDoc}. return tfactory.getClass().getName();
return tfactory.getClass().getName();
{@inheritDoc}. try { // xalan 2 if (classNameImpl.equals(APAC + "processor.TransformerFactoryImpl") || classNameImpl.equals(APAC + "xslt.XSLTProcessorFactory")) { return getXalanVersion(APAC + "processor.XSLProcessorVersion"); } // xalan xsltc if (classNameImpl.equals(APAC + "xsltc.trax.TransformerFactoryImpl")) { return getXSLTCVersion(APAC + "xsltc.ProcessorVersion"); } // jdk 1.5 xsltc if (classNameImpl .equals(SPAC + "internal.xsltc.trax.TransformerFactoryImpl")) { return getXSLTCVersion(SPAC + "internal.xsltc.ProcessorVersion"); } throw new BuildException("Could not find a valid processor version" + " implementation from " + classNameImpl); } catch (ClassNotFoundException e) { throw new BuildException("Could not find processor version " + "implementation", e); }
try { // xalan 2 if (classNameImpl.equals(APAC + "processor.TransformerFactoryImpl") || classNameImpl.equals(APAC + "xslt.XSLTProcessorFactory")) { return getXalanVersion(APAC + "processor.XSLProcessorVersion"); } // xalan xsltc if (classNameImpl.equals(APAC + "xsltc.trax.TransformerFactoryImpl")) { return getXSLTCVersion(APAC + "xsltc.ProcessorVersion"); } // jdk 1.5 xsltc if (classNameImpl .equals(SPAC + "internal.xsltc.trax.TransformerFactoryImpl")) { return getXSLTCVersion(SPAC + "internal.xsltc.ProcessorVersion"); } throw new BuildException("Could not find a valid processor version" + " implementation from " + classNameImpl); } catch (ClassNotFoundException e) { throw new BuildException("Could not find processor version " + "implementation", e); }