org.apache.tools.ant.taskdefs
Interface XSLTLiaison
- All Known Implementing Classes:
- TraXLiaison, XslpLiaison, XalanLiaison
- public interface XSLTLiaison
Proxy interface for XSLT processors.
- Author:
- Sam Ruby, Stephane Bailliez
- See Also:
#XSLTProcess
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 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. |
FILE_PROTOCOL_PREFIX
public static final java.lang.String FILE_PROTOCOL_PREFIX
- the file protocol prefix for systemid.
This file protocol must be appended to an absolute path.
Typically: FILE_PROTOCOL_PREFIX + file.getAbsolutePath()
This is not correct in specification terms since an absolute
url in Unix is file:// + file.getAbsolutePath() while it is
file:/// + file.getAbsolutePath() under Windows.
Whatever, it should not be a problem to put file:/// in every
case since most parsers for now incorrectly makes no difference
between it.. and users also have problem with that :)
setStylesheet
public void setStylesheet(java.io.File stylesheet)
throws java.lang.Exception
- set the stylesheet to use for the transformation.
- Parameters:
stylesheet
- the stylesheet to be used for transformation.
addParam
public void addParam(java.lang.String name,
java.lang.String expression)
throws java.lang.Exception
- Add a parameter to be set during the XSL transformation.
- Parameters:
name
- the parameter name.expression
- the parameter value as an expression string.- 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
- Perform the transformation of a file into another.
- 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:
setStylesheet(File)
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.