org.apache.tools.ant.taskdefs.optional

Class TraXLiaison

public class TraXLiaison extends Object implements XSLTLiaison2, ErrorListener, XSLTLoggerAware

Concrete liaison for XSLT processor implementing TraX. (ie JAXP 1.1)

Since: Ant 1.3

Constructor Summary
TraXLiaison()
Method Summary
voidaddParam(String name, String value)
voidconfigure(XSLTProcess xsltTask)
Specific configuration for the TRaX liaison.
voiderror(TransformerException e)
voidfatalError(TransformerException e)
protected StringgetSystemId(File file)
voidsetAttribute(String name, Object value)
Set a custom attribute for the JAXP factory implementation.
voidsetEntityResolver(EntityResolver aResolver)
Set the class to resolve entities during the transformation
voidsetFactory(String name)
Set the factory name to use instead of JAXP default lookup.
voidsetLogger(XSLTLogger l)
voidsetOutputProperty(String name, String value)
Set the output property for the current transformer.
voidsetStylesheet(File stylesheet)
voidsetURIResolver(URIResolver aResolver)
Set the class to resolve URIs during the transformation
voidtransform(File infile, File outfile)
voidwarning(TransformerException e)

Constructor Detail

TraXLiaison

public TraXLiaison()

Method Detail

addParam

public void addParam(String name, String value)

configure

public void configure(XSLTProcess xsltTask)
Specific configuration for the TRaX liaison.

Parameters: 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)

Deprecated: 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.

Parameters: name the attribute name. value the value of the attribute, usually a boolean string or object.

Since: Ant 1.6

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.

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

setLogger

public void setLogger(XSLTLogger l)

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.

Parameters: name the output property name. value the output property value.

Since: Ant 1.5 Ant 1.5

setStylesheet

public void setStylesheet(File stylesheet)

setURIResolver

public void setURIResolver(URIResolver aResolver)
Set the class to resolve URIs during the transformation

transform

public void transform(File infile, File outfile)

warning

public void warning(TransformerException e)
Copyright