public abstract class XsltTestUtils
extends com.avcompris.util.AbstractUtils
| Constructor and Description |
|---|
XsltTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
callXslTemplate(File xsltFile,
String templateName,
File xmlFile,
String... params)
call a given template within a XSLT sheet and return its result.
|
static String |
callXslTemplate(File xsltFile,
String templateName,
Reader reader,
String... params)
call a given template within a XSLT sheet and return its result.
|
static String |
callXslTemplate(File xsltFile,
String templateName,
String... params)
call a given template within a XSLT sheet and return its result.
|
public static String callXslTemplate(File xsltFile, String templateName, Reader reader, String... params) throws TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException, IOException
xsltFile - the XSLT file.templateName - the XSL template to call.reader - the reader to the XML content.params - the params, as key/value paris, to pass to the XSLT sheets.TransformerFactoryConfigurationErrorTransformerConfigurationExceptionTransformerExceptionIOExceptionpublic static String callXslTemplate(File xsltFile, String templateName, String... params) throws TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException, IOException
xsltFile - the XSLT file.templateName - the XSL template to call.params - the params, as key/value paris, to pass to the XSLT sheets.TransformerFactoryConfigurationErrorTransformerConfigurationExceptionTransformerExceptionIOExceptionpublic static String callXslTemplate(File xsltFile, String templateName, File xmlFile, String... params) throws TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException, IOException
xsltFile - the XSLT file.templateName - the XSL template to call.xmlFile - the XML content file.params - the params, as key/value paris, to pass to the XSLT sheets.TransformerFactoryConfigurationErrorTransformerConfigurationExceptionTransformerExceptionIOExceptionCopyright © 2018 David Andrianavalontsalama. All rights reserved.