| org.apache.tools.ant.taskdefs.XSLTLiaison
XSLTLiaison | public interface XSLTLiaison (Code) | | Proxy interface for XSLT processors.
See Also: XSLTProcess since: Ant 1.1 |
Method Summary | |
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.
Parameters: infile - the input file, probably an XML one. |
FILE_PROTOCOL_PREFIX | String FILE_PROTOCOL_PREFIX(Code) | | 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.
since: Ant 1.4 |
addParam | void addParam(String name, String expression) throws Exception(Code) | | Add a parameter to be set during the XSL transformation.
Parameters: name - the parameter name. Parameters: expression - the parameter value as an expression string. throws: Exception - thrown if any problems happens. since: Ant 1.3 |
setStylesheet | void setStylesheet(File stylesheet) throws Exception(Code) | | set the stylesheet to use for the transformation.
Parameters: stylesheet - the stylesheet to be used for transformation. throws: Exception - thrown if any problems happens. since: Ant 1.4 |
transform | void transform(File infile, File outfile) throws Exception(Code) | | Perform the transformation of a file into another.
Parameters: infile - the input file, probably an XML one. :-) Parameters: outfile - the output file resulting from the transformation throws: Exception - thrown if any problems happens. See Also: XSLTLiaison.setStylesheet(File) since: Ant 1.4 |
|
|