org.apache.tools.ant.taskdefs.optional
Class TraXLiaison
java.lang.Object
org.apache.tools.ant.taskdefs.optional.TraXLiaison
- ErrorListener, XSLTLiaison, XSLTLiaison2, XSLTLoggerAware
public class TraXLiaison
extends java.lang.Object
Concrete liaison for XSLT processor implementing TraX. (ie JAXP 1.1)
void | addParam(String name, String value) - Add a parameter to be set during the XSL transformation.
|
void | configure(XSLTProcess xsltTask) - Specific configuration for the TRaX liaison.
|
void | error(TransformerException e)
|
void | fatalError(TransformerException e)
|
protected String | getSystemId(File file) - use org.apache.tools.ant.util.JAXPUtils#getSystemId instead
|
void | setAttribute(String name, Object value) - Set a custom attribute for the JAXP factory implementation.
|
void | setEntityResolver(EntityResolver aResolver) - Set the class to resolve entities during the transformation
|
void | setFactory(String name) - Set the factory name to use instead of JAXP default lookup.
|
void | setLogger(XSLTLogger l)
|
void | setOutputProperty(String name, String value) - Set the output property for the current transformer.
|
void | setStylesheet(File stylesheet) - set the stylesheet to use for the transformation.
|
void | setURIResolver(URIResolver aResolver) - Set the class to resolve URIs during the transformation
|
void | transform(File infile, File outfile) - Perform the transformation of a file into another.
|
void | warning(TransformerException e)
|
TraXLiaison
public TraXLiaison()
throws Exception
addParam
public void addParam(String name,
String value)
Add a parameter to be set during the XSL transformation.
- addParam in interface XSLTLiaison
name
- the parameter name.
configure
public void configure(XSLTProcess xsltTask)
Specific configuration for the TRaX liaison.
- configure in interface XSLTLiaison2
xsltTask
- the XSLTProcess task instance from which this liasion
is to be configured.
error
public void error(TransformerException e)
fatalError
public void fatalError(TransformerException e)
getSystemId
protected String getSystemId(File file)
use org.apache.tools.ant.util.JAXPUtils#getSystemId instead
setAttribute
public void setAttribute(String name,
Object value)
Set a custom attribute for the JAXP factory implementation.
name
- the attribute name.value
- the value of the attribute, usually a boolean
string or object.
setEntityResolver
public void setEntityResolver(EntityResolver aResolver)
Set the class to resolve entities during the transformation
setFactory
public void setFactory(String name)
Set the factory name to use instead of JAXP default lookup.
name
- the fully qualified class name of the factory to use
or null for the default JAXP look up mechanism.
setOutputProperty
public void setOutputProperty(String name,
String value)
Set the output property for the current transformer.
Note that the stylesheet must be set prior to calling
this method.
name
- the output property name.value
- the output property value.
setStylesheet
public void setStylesheet(File stylesheet)
throws Exception
set the stylesheet to use for the transformation.
- setStylesheet in interface XSLTLiaison
stylesheet
- the stylesheet to be used for transformation.
setURIResolver
public void setURIResolver(URIResolver aResolver)
Set the class to resolve URIs during the transformation
transform
public void transform(File infile,
File outfile)
throws Exception
Perform the transformation of a file into another.
- transform in interface XSLTLiaison
infile
- the input file, probably an XML one. :-)outfile
- the output file resulting from the transformation
warning
public void warning(TransformerException e)
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.