public class TraXLiaison extends Object implements XSLTLiaison4, javax.xml.transform.ErrorListener, XSLTLoggerAware
FILE_PROTOCOL_PREFIX| Constructor and Description |
|---|
TraXLiaison()
Constructor for TraXLiaison.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(String name,
Object value)
Add a parameter.
|
void |
addParam(String name,
String value)
Add a parameter.
|
void |
configure(XSLTProcess xsltTask)
Specific configuration for the TRaX liaison.
|
void |
error(javax.xml.transform.TransformerException e)
Log an error.
|
void |
fatalError(javax.xml.transform.TransformerException e)
Log a fatal error.
|
void |
setAttribute(String name,
Object value)
Set a custom attribute for the JAXP factory implementation.
|
void |
setEntityResolver(org.xml.sax.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 |
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(javax.xml.transform.URIResolver aResolver)
Set the class to resolve URIs during the transformation
|
void |
transform(File infile,
File outfile)
Transform an input file.
|
void |
warning(javax.xml.transform.TransformerException e)
Log a warning.
|
public void addParam(String name, Object value)
addParam in interface XSLTLiaison4name - the name of the parametervalue - the value of the parameterTransformer.setParameter(java.lang.String, java.lang.Object)public void addParam(String name, String value)
addParam in interface XSLTLiaisonname - the name of the parametervalue - the value of the parameterXSLTLiaison4.addParam(java.lang.String, java.lang.Object)public void configure(XSLTProcess xsltTask)
configure in interface XSLTLiaison2xsltTask - the XSLTProcess task instance from which this liaison
is to be configured.public void error(javax.xml.transform.TransformerException e)
error in interface javax.xml.transform.ErrorListenere - the exception to log.public void fatalError(javax.xml.transform.TransformerException e)
fatalError in interface javax.xml.transform.ErrorListenere - the exception to log.public void setAttribute(String name, Object value)
name - the attribute name.value - the value of the attribute, usually a boolean
string or object.public void setEntityResolver(org.xml.sax.EntityResolver aResolver)
aResolver - the resolver class.public void setFactory(String name)
name - the fully qualified class name of the factory to use
or null for the default JAXP look up mechanism.public void setFeature(String name, boolean value)
name - the feature name.value - the value of the featurepublic void setLogger(XSLTLogger l)
setLogger in interface XSLTLoggerAwarel - a logger.public void setOutputProperty(String name, String value)
name - the output property name.value - the output property value.public void setStylesheet(File stylesheet) throws Exception
setStylesheet in interface XSLTLiaisonstylesheet - a File valueException - on errorpublic void setStylesheet(Resource stylesheet) throws Exception
setStylesheet in interface XSLTLiaison3stylesheet - a Resource valueException - on errorpublic void setURIResolver(javax.xml.transform.URIResolver aResolver)
aResolver - a EntityResolver valuepublic void transform(File infile, File outfile) throws Exception
transform in interface XSLTLiaisoninfile - the file to transformoutfile - the result fileException - on errorXSLTLiaison.setStylesheet(File)public void warning(javax.xml.transform.TransformerException e)
warning in interface javax.xml.transform.ErrorListenere - the exception to log.