|
TraXLiaison (Apache Ant API)
org.apache.tools.ant.taskdefs.optional
|
Field Summary |
Fields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaison |
FILE_PROTOCOL_PREFIX |
Constructor Summary | |
TraXLiaison()
|
Method Summary | |
void |
addParam(java.lang.String name,
java.lang.String value)
Add a parameter to be set during the XSL transformation. |
void |
|
void |
|
protected java.lang.String |
getSystemId(java.io.File file)
|
void |
|
void |
setLogger(XSLTLogger l)
|
void |
setOutputProperty(java.lang.String name,
java.lang.String value)
Set the output property for the current transformer. |
void |
setStylesheet(java.io.File stylesheet)
set the stylesheet to use for the transformation. |
void |
|
void |
transform(java.io.File infile,
java.io.File outfile)
Perform the transformation of a file into another. |
void |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TraXLiaison() throws java.lang.Exception
Method Detail |
public void setOutputProperty(java.lang.String name, java.lang.String value)
name
- the output property name.value
- the output property value.public void setStylesheet(java.io.File stylesheet) throws java.lang.Exception
XSLTLiaison
setStylesheet
in interface XSLTLiaison
stylesheet
- the stylesheet to be used for transformation.
java.lang.Exception
public void transform(java.io.File infile, java.io.File outfile) throws java.lang.Exception
XSLTLiaison
transform
in interface XSLTLiaison
infile
- the input file, probably an XML one. :-)outfile
- the output file resulting from the transformation
java.lang.Exception
- thrown if any problems happens.XSLTLiaison.setStylesheet(File)
protected java.lang.String getSystemId(java.io.File file)
public void addParam(java.lang.String name, java.lang.String value)
XSLTLiaison
addParam
in interface XSLTLiaison
name
- the parameter name.value
- the parameter value as an expression string.public void setLogger(XSLTLogger l)
setLogger
in interface XSLTLoggerAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |