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.XSLTLiaisonstylesheet - the stylesheet to be used for transformation.java.lang.Exceptionpublic void addParam(java.lang.String name,
java.lang.String expression)
throws java.lang.Exception
addParam in interface org.apache.tools.ant.taskdefs.XSLTLiaisonname - 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.XSLTLiaisoninfile - the xml input file.outfile - the output file resulting from the transformationjava.lang.Exception - thrown if any problems happens.setStylesheet(File)