org.apache.tools.ant.taskdefs.optional
Class XslpLiaison
java.lang.Objectorg.apache.tools.ant.taskdefs.optional.XslpLiaison
- XSLTLiaison
public class XslpLiaison
extends java.lang.Object
Concrete liaison for XSLP
void | addParam(String name, String expression)- Add a parameter to be set during the XSL transformation.
|
void | setStylesheet(File fileName)- set the stylesheet to use for the transformation.
|
void | transform(File infile, File outfile)- Perform the transformation of a file into another.
|
processor
protected XSLProcessor processor
xslSheet
protected XSLStylesheet xslSheet
XslpLiaison
public XslpLiaison()
addParam
public void addParam(String name,
String expression) Add a parameter to be set during the XSL transformation.
- addParam in interface XSLTLiaison
name - the parameter name.expression - the parameter value as an expression string.
setStylesheet
public void setStylesheet(File fileName)
throws Exception set the stylesheet to use for the transformation.
- setStylesheet in interface XSLTLiaison
transform
public void transform(File infile,
File outfile)
throws Exception Perform the transformation of a file into another.
- transform in interface XSLTLiaison
infile - the input file, probably an XML one. :-)outfile - the output file resulting from the transformation
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.