org.exolab.adaptx.util

Class JakartaAntAdapter

Implemented Interfaces:
XSLTLiaison

public class JakartaAntAdapter
extends java.lang.Object
implements XSLTLiaison

A utility class which allows Adaptx to be used as the XSLT Processor for the Jakarta ANT build utility.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:31 $
Author:
Keith Visco

Constructor Summary

JakartaAntAdapter()
Creates a new adapter class for Jakarta ANT.

Method Summary

void
addParam(String name, String expression)
Add a parameter to be set during the XSL transformation.
void
setStylesheet(File stylesheet)
Sets the stylesheet to use for the transformation.
void
transform(File infile, File outfile)
Perform the transformation of a file into another.

Constructor Details

JakartaAntAdapter

public JakartaAntAdapter()
Creates a new adapter class for Jakarta ANT.

Method Details

addParam

public void addParam(String name,
                     String expression)
            throws Exception
Add a parameter to be set during the XSL transformation.
Parameters:
name - the parameter name.
expression - the parameter value as an expression string.

setStylesheet

public void setStylesheet(File stylesheet)
            throws Exception
Sets the stylesheet to use for the transformation.
Parameters:
stylesheet - the stylesheet to be used for transformation.

transform

public void transform(File infile,
                      File outfile)
            throws Exception
Perform the transformation of a file into another.
Parameters:
infile - the xml input file.
outfile - the output file resulting from the transformation