Class TraXLiaison
java.lang.Object
org.apache.tools.ant.taskdefs.optional.TraXLiaison
- All Implemented Interfaces:
ErrorListener
,XSLTLiaison
,XSLTLiaison2
,XSLTLiaison3
,XSLTLiaison4
,XSLTLoggerAware
Concrete liaison for XSLT processor implementing TraX. (ie JAXP 1.1)
- Since:
- Ant 1.3
-
Field Summary
Fields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaison
FILE_PROTOCOL_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a parameter.void
Add a parameter.void
configure
(XSLTProcess xsltTask) Specific configuration for the TRaX liaison.void
Log an error.void
Log a fatal error.protected String
getSystemId
(File file) Deprecated.since 1.5.x.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
setFeature
(String name, boolean value) Set a custom feature for the JAXP factory implementation.void
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 transformationvoid
Transform an input file.void
Log a warning.
-
Constructor Details
-
TraXLiaison
-
-
Method Details
-
setStylesheet
Set the stylesheet file.- Specified by:
setStylesheet
in interfaceXSLTLiaison
- Parameters:
stylesheet
- aFile
value- Throws:
Exception
- on error
-
setStylesheet
Set the stylesheet file.- Specified by:
setStylesheet
in interfaceXSLTLiaison3
- Parameters:
stylesheet
- aResource
value- Throws:
Exception
- on error
-
transform
-
setFactory
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
-
setAttribute
-
setFeature
Set a custom feature for the JAXP factory implementation.- Parameters:
name
- the feature name.value
- the value of the feature- Since:
- Ant 1.9.8
-
setOutputProperty
-
setEntityResolver
Set the class to resolve entities during the transformation.- Parameters:
aResolver
- the resolver class.
-
setURIResolver
Set the class to resolve URIs during the transformation- Parameters:
aResolver
- aEntityResolver
value
-
addParam
Add a parameter.- Specified by:
addParam
in interfaceXSLTLiaison
- Parameters:
name
- the name of the parametervalue
- the value of the parameter- See Also:
-
addParam
Add a parameter.- Specified by:
addParam
in interfaceXSLTLiaison4
- Parameters:
name
- the name of the parametervalue
- the value of the parameter- Since:
- Ant 1.9.3
- See Also:
-
setLogger
Set a logger.- Specified by:
setLogger
in interfaceXSLTLoggerAware
- Parameters:
l
- a logger.
-
error
Log an error.- Specified by:
error
in interfaceErrorListener
- Parameters:
e
- the exception to log.
-
fatalError
Log a fatal error.- Specified by:
fatalError
in interfaceErrorListener
- Parameters:
e
- the exception to log.
-
warning
Log a warning.- Specified by:
warning
in interfaceErrorListener
- Parameters:
e
- the exception to log.
-
getSystemId
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
-
configure
Specific configuration for the TRaX liaison.- Specified by:
configure
in interfaceXSLTLiaison2
- Parameters:
xsltTask
- the XSLTProcess task instance from which this liaison is to be configured.
-