org.apache.tools.ant.taskdefs.optional
Class XslpLiaison
java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.optional.XslpLiaison
- All Implemented Interfaces: 
- XSLTLiaison
- public class XslpLiaison- extends java.lang.Object- implements XSLTLiaison
Concrete liaison for XSLP
- Since:
- Ant 1.1
| Field Summary | 
| protected  com.kvisco.xsl.XSLProcessor | processor
 | 
| protected  com.kvisco.xsl.XSLStylesheet | xslSheet
 | 
 
 
 
| Method Summary | 
|  void | addParam(java.lang.String name,
         java.lang.String expression)Add a parameter to be set during the XSL transformation.
 | 
|  void | setStylesheet(java.io.File fileName)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 | 
 
processor
protected com.kvisco.xsl.XSLProcessor processor
xslSheet
protected com.kvisco.xsl.XSLStylesheet xslSheet
XslpLiaison
public XslpLiaison()
setStylesheet
public void setStylesheet(java.io.File fileName)
                   throws java.lang.Exception
- Description copied from interface: XSLTLiaison
- set the stylesheet to use for the transformation.
 
- 
- Specified by:
- setStylesheetin interface- XSLTLiaison
 
- 
- Parameters:
- fileName- the stylesheet to be used for transformation.
- Throws:
- java.lang.Exception- thrown if any problems happens.
 
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:
- transformin interface- 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)
 
addParam
public void addParam(java.lang.String name,
                     java.lang.String expression)
- Description copied from interface: XSLTLiaison
- Add a parameter to be set during the XSL transformation.
 
- 
- Specified by:
- addParamin interface- XSLTLiaison
 
- 
- Parameters:
- name- the parameter name.
- expression- the parameter value as an expression string.
 
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.