org.apache.tools.ant.taskdefs.optional
public class TraXLiaison extends Object implements XSLTLiaison3, ErrorListener, XSLTLoggerAware
Since: Ant 1.3
Constructor Summary | |
---|---|
TraXLiaison()
Constructor for TraXLiaison. |
Method Summary | |
---|---|
void | addParam(String name, String value)
Add a parameter. |
void | configure(XSLTProcess xsltTask)
Specific configuration for the TRaX liaison. |
void | error(TransformerException e)
Log an error. |
void | fatalError(TransformerException e)
Log a fatal error. |
protected String | getSystemId(File file) |
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)
Set a logger. |
void | setOutputProperty(String name, String value)
Set the output property for the current transformer.
|
void | setStylesheet(File stylesheet)
Set the stylesheet file. |
void | setStylesheet(Resource stylesheet)
Set the stylesheet file. |
void | setURIResolver(URIResolver aResolver)
Set the class to resolve URIs during the transformation |
void | transform(File infile, File outfile)
Transform an input file. |
void | warning(TransformerException e)
Log a warning. |
Throws: Exception never
Parameters: name the name of the parameter value the value of the parameter
Parameters: xsltTask the XSLTProcess task instance from which this liasion is to be configured.
Parameters: e the exception to log.
Parameters: e the exception to log.
Deprecated: since 1.5.x. Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead.
Parameters: file the filename to use for the systemid
Returns: the systemid
Parameters: name the attribute name. value the value of the attribute, usually a boolean string or object.
Since: Ant 1.6
Parameters: aResolver the resolver class.
Parameters: name the fully qualified class name of the factory to use or null for the default JAXP look up mechanism.
Since: Ant 1.6
Parameters: l a logger.
Parameters: name the output property name. value the output property value.
Since: Ant 1.5 Ant 1.5
Parameters: stylesheet a File
value
Throws: Exception on error
Parameters: stylesheet a {@link org.apache.tools.ant.types.Resource} value
Throws: Exception on error
Parameters: aResolver a EntityResolver
value
Parameters: infile the file to transform outfile the result file
Throws: Exception on error
Parameters: e the exception to log.