public class XsltTransformer extends Object
Constructor and Description |
---|
XsltTransformer() |
Modifier and Type | Method and Description |
---|---|
static void |
simpleTransform(String contextFile,
InputStream xsltSource,
File result,
Map<String,Object> parameters)
Simple transformation method.
|
static void |
simpleTransform(String sourcePath,
StreamSource xsltSource,
String resultDir,
Map<String,Object> parameters)
Simple transformation method.
|
static void |
simpleTransform(String sourcePath,
String xsltPath,
String resultDir,
Map<String,Object> parameters)
Simple transformation method.
|
public static void simpleTransform(String sourcePath, String xsltPath, String resultDir, Map<String,Object> parameters) throws TransformerException
sourcePath
- - Absolute path to source xml file.xsltPath
- - Absolute path to xslt file.resultDir
- - Directory where you want to put resulting files.parameters
- - Map defining global XSLT parameters based via tranformer to the XSLT file.TransformerException
public static void simpleTransform(String sourcePath, StreamSource xsltSource, String resultDir, Map<String,Object> parameters) throws TransformerException
sourcePath
- - Absolute path to source xml file.StreamSource
- - the xslt file.resultDir
- - Directory where you want to put resulting files.parameters
- - Map defining global XSLT parameters based via tranformer to the XSLT file.TransformerException
public static void simpleTransform(String contextFile, InputStream xsltSource, File result, Map<String,Object> parameters) throws TransformerException
contextFile
- - Absolute path to source xml file.StreamSource
- - the xslt file.resultDir
- - Directory where you want to put resulting files.parameters
- - Map defining global XSLT parameters based via transformer to the XSLT file.TransformerException
Copyright © 2022 JBoss by Red Hat. All rights reserved.