org.apache.tools.ant.taskdefsInterface XSLTLiaison
- All Known Subinterfaces:
- XSLTLiaison2, XSLTLiaison3, XSLTLiaison4
- All Known Implementing Classes:
- TraXLiaison
public interface XSLTLiaisonProxy interface for XSLT processors.
- Since:
- Ant 1.1
- See Also:
XSLTProcess
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringFILE_PROTOCOL_PREFIXthe file protocol prefix for systemid.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddParam(java.lang.String name, java.lang.String expression)Add a parameter to be set during the XSL transformation.voidsetStylesheet(java.io.File stylesheet)set the stylesheet to use for the transformation.voidtransform(java.io.File infile, java.io.File outfile)Perform the transformation of a file into another.
Field Detail
FILE_PROTOCOL_PREFIX
static final java.lang.String FILE_PROTOCOL_PREFIXthe 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
- See Also:
- Constant Field Values
Method Detail
setStylesheet
void setStylesheet(java.io.File stylesheet) throws java.lang.Exceptionset the stylesheet to use for the transformation.
- Parameters:
stylesheet- the stylesheet to be used for transformation.- Throws:
java.lang.Exception- thrown if any problems happens.- Since:
- Ant 1.4
addParam
void addParam(java.lang.String name, java.lang.String expression) throws java.lang.ExceptionAdd a parameter to be set during the XSL transformation.
- Parameters:
name- the parameter name.expression- the parameter value as an expression string.- Throws:
java.lang.Exception- thrown if any problems happens.- Since:
- Ant 1.3
- See Also:
XSLTLiaison4.addParam(java.lang.String, java.lang.Object)
transform
void transform(java.io.File infile, java.io.File outfile) throws java.lang.ExceptionPerform the transformation of a file into another.
- Parameters:
infile- the input file, probably an XML one. :-)outfile- the output file resulting from the transformation- Throws:
java.lang.Exception- thrown if any problems happens.- Since:
- Ant 1.4
- See Also:
setStylesheet(File)