org.apache.tools.ant.taskdefs.optional
Class TraXLiaison
java.lang.Object
|
+--org.apache.tools.ant.taskdefs.optional.TraXLiaison
- All Implemented Interfaces:
- XSLTLiaison
- public class TraXLiaison
- extends java.lang.Object
- implements XSLTLiaison
Concrete liaison for XSLT processor implementing TraX. (ie JAXP 1.1)
- Author:
- Sam Ruby, Davanum Srinivas, Stephane Bailliez
Method Summary |
void |
addParam(java.lang.String name,
java.lang.String value)
Add a parameter to be set during the XSL transformation. |
protected java.lang.String |
getSystemId(java.io.File file)
|
void |
setStylesheet(java.io.File stylesheet)
set the stylesheet to use for the transformation. |
void |
transform(java.io.File infile,
java.io.File outfile)
Perform the transformation of a file into another. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraXLiaison
public TraXLiaison()
throws java.lang.Exception
setStylesheet
public void setStylesheet(java.io.File stylesheet)
throws java.lang.Exception
- Description copied from interface:
XSLTLiaison
- set the stylesheet to use for the transformation.
- Specified by:
setStylesheet
in interface XSLTLiaison
- Following copied from interface:
org.apache.tools.ant.taskdefs.XSLTLiaison
- Parameters:
stylesheet
- the stylesheet to be used for transformation.
transform
public void transform(java.io.File infile,
java.io.File outfile)
throws java.lang.Exception
- Description copied from interface:
XSLTLiaison
- Perform the transformation of a file into another.
- Specified by:
transform
in interface XSLTLiaison
- Following copied from interface:
org.apache.tools.ant.taskdefs.XSLTLiaison
- 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.- See Also:
XSLTLiaison.setStylesheet(File)
getSystemId
protected java.lang.String getSystemId(java.io.File file)
addParam
public void addParam(java.lang.String name,
java.lang.String value)
- Description copied from interface:
XSLTLiaison
- Add a parameter to be set during the XSL transformation.
- Specified by:
addParam
in interface XSLTLiaison
- Following copied from interface:
org.apache.tools.ant.taskdefs.XSLTLiaison
- Parameters:
name
- the parameter name.expression
- the parameter value as an expression string.- Throws:
java.lang.Exception
- thrown if any problems happens.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.