org.exolab.adaptx.util
Class JakartaAntAdapter
java.lang.Object
org.exolab.adaptx.util.JakartaAntAdapter
- XSLTLiaison
public class JakartaAntAdapter
extends java.lang.Object
implements XSLTLiaison
A utility class which allows Adaptx to be used as the
XSLT Processor for the Jakarta ANT build utility.
$Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
void | addParam(String name, String expression) - Add a parameter to be set during the XSL transformation.
|
void | setStylesheet(File stylesheet) - Sets the stylesheet to use for the transformation.
|
void | transform(File infile, File outfile) - Perform the transformation of a file into another.
|
JakartaAntAdapter
public JakartaAntAdapter()
Creates a new adapter class for Jakarta ANT.
addParam
public void addParam(String name,
String expression)
throws Exception
Add a parameter to be set during the XSL transformation.
name
- the parameter name.expression
- the parameter value as an expression string.
setStylesheet
public void setStylesheet(File stylesheet)
throws Exception
Sets the stylesheet to use for the transformation.
stylesheet
- the stylesheet to be used for transformation.
transform
public void transform(File infile,
File outfile)
throws Exception
Perform the transformation of a file into another.
infile
- the xml input file.outfile
- the output file resulting from the transformation