public class XSLTProcessor extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static XSLTProcessor |
getInstance(String stylesheet)
Get an instance of XSLTProcessor and then do a one time initialization to improve
performance for repetitive invocations of transformations.
|
static XSLTProcessor |
getInstance(String stylesheet,
HashMap<String,Object> featureMappings)
Get an instance of XSLTProcessor and then do a one time initialization to improve
performance for repetitive invocations of transformations.
|
void |
setOutputMethod(String method)
Set the output method (the default is xml).
|
String |
transform(InputStream content)
Transform the content.
|
String |
transform(String content)
Transform the content.
|
String |
transform(String content,
HashMap<String,String> stylesheetParams)
Transform the content.
|
public static XSLTProcessor getInstance(String stylesheet) throws XSLTException
stylesheet - XSLTExceptionpublic static XSLTProcessor getInstance(String stylesheet, HashMap<String,Object> featureMappings) throws XSLTException
stylesheet - featureMappings - Processor feature mappingsXSLTExceptionpublic void setOutputMethod(String method)
method - public String transform(String content) throws XSLTException
content - the xml to be transformedXSLTExceptionpublic String transform(InputStream content) throws XSLTException
content - the xml to be transformedXSLTExceptionpublic String transform(String content, HashMap<String,String> stylesheetParams) throws XSLTException
content - the xml to be transformedstylesheetParams - HashMap of stylesheet paramsXSLTExceptionCopyright © 2018 Elsevier, Inc.. All rights reserved.