org.apache.tools.ant.taskdefs.optional

Class XslpLiaison

Implemented Interfaces:
XSLTLiaison

public class XslpLiaison
extends java.lang.Object
implements XSLTLiaison

Concrete liaison for XSLP
Since:
Ant 1.1

Field Summary

protected XSLProcessor
processor
protected XSLStylesheet
xslSheet

Fields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaison

FILE_PROTOCOL_PREFIX

Constructor Summary

XslpLiaison()

Method Summary

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.

Field Details

processor

protected XSLProcessor processor

xslSheet

protected XSLStylesheet xslSheet

Constructor Details

XslpLiaison

public XslpLiaison()

Method Details

addParam

public void addParam(String name,
                     String expression)
Add a parameter to be set during the XSL transformation.
Specified by:
addParam in interface XSLTLiaison
Parameters:
name - the parameter name.
expression - the parameter value as an expression string.
Since:
Ant 1.3

setStylesheet

public void setStylesheet(File fileName)
            throws Exception
set the stylesheet to use for the transformation.
Specified by:
setStylesheet in interface XSLTLiaison
Parameters:
Since:
Ant 1.4

transform

public void transform(File infile,
                      File outfile)
            throws Exception
Perform the transformation of a file into another.
Specified by:
transform in interface XSLTLiaison
Parameters:
infile - the input file, probably an XML one. :-)
outfile - the output file resulting from the transformation
Since:
Ant 1.4

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.