public class JakartaAntAdapter
extends java.lang.Object
implements org.apache.tools.ant.taskdefs.XSLTLiaison
Constructor and Description |
---|
JakartaAntAdapter()
Creates a new adapter class for Jakarta ANT.
|
Modifier and Type | Method and Description |
---|---|
void |
addParam(java.lang.String name,
java.lang.String expression)
Add a parameter to be set during the XSL transformation.
|
void |
setStylesheet(java.io.File stylesheet)
Sets the stylesheet to use for the transformation.
|
void |
transform(java.io.File infile,
java.io.File outfile)
Perform the transformation of a file into another.
|
public JakartaAntAdapter()
public void setStylesheet(java.io.File stylesheet) throws java.lang.Exception
setStylesheet
in interface org.apache.tools.ant.taskdefs.XSLTLiaison
stylesheet
- the stylesheet to be used for transformation.java.lang.Exception
public void addParam(java.lang.String name, java.lang.String expression) throws java.lang.Exception
addParam
in interface org.apache.tools.ant.taskdefs.XSLTLiaison
name
- the parameter name.expression
- the parameter value as an expression string.java.lang.Exception
- thrown if any problems happens.public void transform(java.io.File infile, java.io.File outfile) throws java.lang.Exception
transform
in interface org.apache.tools.ant.taskdefs.XSLTLiaison
infile
- the xml input file.outfile
- the output file resulting from the transformationjava.lang.Exception
- thrown if any problems happens.setStylesheet(File)