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 SummaryFields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaisonFILE_PROTOCOL_PREFIX
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a parameter.voidAdd a parameter.voidconfigure(XSLTProcess xsltTask) Specific configuration for the TRaX liaison.voidLog an error.voidLog a fatal error.protected StringgetSystemId(File file) Deprecated.since 1.5.x.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.voidsetFeature(String name, boolean value) Set a custom feature for the JAXP factory implementation.voidSet a logger.voidsetOutputProperty(String name, String value) Set the output property for the current transformer.voidsetStylesheet(File stylesheet) Set the stylesheet file.voidsetStylesheet(Resource stylesheet) Set the stylesheet file.voidsetURIResolver(URIResolver aResolver) Set the class to resolve URIs during the transformationvoidTransform an input file.voidLog a warning.
- 
Constructor Details- 
TraXLiaisonConstructor for TraXLiaison.- Throws:
- Exception- never
 
 
- 
- 
Method Details- 
setStylesheetSet the stylesheet file.- Specified by:
- setStylesheetin interface- XSLTLiaison
- Parameters:
- stylesheet- a- Filevalue
- Throws:
- Exception- on error
 
- 
setStylesheetSet the stylesheet file.- Specified by:
- setStylesheetin interface- XSLTLiaison3
- Parameters:
- stylesheet- a- Resourcevalue
- Throws:
- Exception- on error
 
- 
transformTransform an input file.- Specified by:
- transformin interface- XSLTLiaison
- Parameters:
- infile- the file to transform
- outfile- the result file
- Throws:
- Exception- on error
- See Also:
 
- 
setFactorySet 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
 
- 
setAttributeSet 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
 
- 
setFeatureSet a custom feature for the JAXP factory implementation.- Parameters:
- name- the feature name.
- value- the value of the feature
- Since:
- Ant 1.9.8
 
- 
setOutputPropertySet 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
 
- 
setEntityResolverSet the class to resolve entities during the transformation.- Parameters:
- aResolver- the resolver class.
 
- 
setURIResolverSet the class to resolve URIs during the transformation- Parameters:
- aResolver- a- EntityResolvervalue
 
- 
addParamAdd a parameter.- Specified by:
- addParamin interface- XSLTLiaison
- Parameters:
- name- the name of the parameter
- value- the value of the parameter
- See Also:
 
- 
addParamAdd a parameter.- Specified by:
- addParamin interface- XSLTLiaison4
- Parameters:
- name- the name of the parameter
- value- the value of the parameter
- Since:
- Ant 1.9.3
- See Also:
 
- 
setLoggerSet a logger.- Specified by:
- setLoggerin interface- XSLTLoggerAware
- Parameters:
- l- a logger.
 
- 
errorLog an error.- Specified by:
- errorin interface- ErrorListener
- Parameters:
- e- the exception to log.
 
- 
fatalErrorLog a fatal error.- Specified by:
- fatalErrorin interface- ErrorListener
- Parameters:
- e- the exception to log.
 
- 
warningLog a warning.- Specified by:
- warningin interface- ErrorListener
- Parameters:
- e- the exception to log.
 
- 
getSystemIdDeprecated.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
 
- 
configureSpecific configuration for the TRaX liaison.- Specified by:
- configurein interface- XSLTLiaison2
- Parameters:
- xsltTask- the XSLTProcess task instance from which this liaison is to be configured.
 
 
-