org.custommonkey.xmlunit
public class Transform extends Object
getResultXXX method, and Templates are not used.
| Constructor Summary | |
|---|---|
| Transform(String input, String stylesheet)
Create a transformation using String input XML and String stylesheet | |
| Transform(String input, File stylesheet)
Create a transformation using String input XML and stylesheet in a File | |
| Transform(Node sourceNode)
Create a transformation that allows us to serialize a DOM Node | |
| Transform(Node sourceNode, String stylesheet)
Create a transformation from an input Node and stylesheet in a String | |
| Transform(Node sourceNode, File stylesheet)
Create a transformation from an input Node and stylesheet in a File | |
| Transform(Source inputSource, Source stylesheetSource)
Create a transformation using Source input XML and Source stylesheet | |
| Method Summary | |
|---|---|
| void | clearParameters()
Clear parameters used for the transformation |
| Object | getParameter(String name)
See a parameter used for the transformation |
| Document | getResultDocument()
Perform the XSLT transformation specified in the constructor |
| String | getResultString()
Perform the XSLT transformation specified in the constructor |
| void | setErrorListener(ErrorListener errorListener)
Set the ErrorListener for the transformation |
| void | setOutputProperties(Properties outputProperties)
Override output properties specified in the transformation stylesheet |
| void | setOutputProperty(String name, String value)
Override an output property specified in the transformation stylesheet |
| void | setParameter(String name, Object value)
Add a parameter for the transformation |
| void | setURIResolver(URIResolver uriResolver)
Set the URIResolver for the transformation |
| protected void | transformTo(Result result)
Perform the actual transformation |
Parameters: input stylesheet
Throws: TransformerConfigurationException
Parameters: input stylesheet
Throws: TransformerConfigurationException
Parameters: source
Throws: TransformerConfigurationException
Parameters: sourceNode stylesheet
Throws: TransformerConfigurationException
Parameters: sourceNode stylesheet
Throws: TransformerConfigurationException
Parameters: inputReader stylesheetReader
Throws: TransformerConfigurationException
See Also: Transformer#clearParameters()
Parameters: name
Returns: the parameter value
See Also: Transformer#getParameter(java.lang.String)
Returns: the result as a DOM Document
Throws: TransformerException
Returns: the result as a String
Throws: TransformerException
See Also: Transformer#setErrorListener(javax.xml.transform.ErrorListener)
Parameters: outputProperties
See Also: Transformer#setOutputProperties(java.util.Properties)
Parameters: name value
Parameters: name value
See Also: Transformer#setParameter(java.lang.String, java.lang.Object)
See Also: Transformer#setURIResolver(javax.xml.transform.URIResolver)
Parameters: result
Throws: TransformerException