org.apache.tools.ant.taskdefs
Interface XSLTLiaison
- XSLTLiaison2, XSLTLiaison3
- TraXLiaison
public interface XSLTLiaison
Proxy interface for XSLT processors.
void | addParam(String name, String expression) - Add a parameter to be set during the XSL transformation.
|
void | setStylesheet(File stylesheet) - set the stylesheet to use for the transformation.
|
void | transform(File infile, File outfile) - Perform the transformation of a file into another.
|
FILE_PROTOCOL_PREFIX
public static final String FILE_PROTOCOL_PREFIX
the file protocol prefix for systemid.
This file protocol must be appended to an absolute path.
Typically: FILE_PROTOCOL_PREFIX + file.getAbsolutePath()
Note that on Windows, an extra '/' must be appended to the
protocol prefix so that there is always 3 consecutive slashes.
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
set 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 input file, probably an XML one. :-)outfile
- the output file resulting from the transformation