FileDocCategorySizeDatePackage
XSLTLiaison.javaAPI DocApache Ant 1.702427Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs

XSLTLiaison

public interface XSLTLiaison
Proxy interface for XSLT processors.
see
XSLTProcess
since
Ant 1.1

Fields Summary
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.
Constructors Summary
Methods Summary
public voidaddParam(java.lang.String name, java.lang.String expression)
Add a parameter to be set during the XSL transformation.

param
name the parameter name.
param
expression the parameter value as an expression string.
throws
Exception thrown if any problems happens.
since
Ant 1.3

public voidsetStylesheet(java.io.File stylesheet)
set the stylesheet to use for the transformation.

param
stylesheet the stylesheet to be used for transformation.
throws
Exception thrown if any problems happens.
since
Ant 1.4

public voidtransform(java.io.File infile, java.io.File outfile)
Perform the transformation of a file into another.

param
infile the input file, probably an XML one. :-)
param
outfile the output file resulting from the transformation
throws
Exception thrown if any problems happens.
see
#setStylesheet(File)
since
Ant 1.4