| org.apache.cocoon.components.xslt.XSLTProcessorImpl
XSLTProcessorImpl | public class XSLTProcessorImpl extends AbstractLogEnabled implements XSLTProcessor,Composable,Disposable,Parameterizable,URIResolver(Code) | | This class defines the implementation of the
XSLTProcessor component.
To configure it, add the following lines in the
cocoon.xconf file:
<xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl">
<parameter name="use-store" value="true"/>
<parameter name="transformer-factory" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
</xslt-processor>
The <use-store> configuration forces the transformer to put the
Templates generated from the XSLT stylesheet into the
Store . This property is true by default.
The <transformer-factory> configuration tells the transformer to use a particular
implementation of javax.xml.transform.TransformerFactory . This allows to force
the use of a given TRAX implementation (e.g. xalan or saxon) if several are available in the
classpath. If this property is not set, the transformer uses the standard TRAX mechanism
(TransformerFactory.newInstance() ).
author: Ovidiu Predescu author: Stefano Mazzocchi version: CVS $Id: XSLTProcessorImpl.java 540711 2007-05-22 19:36:07Z cziegeler $ version: 1.0 since: July 11, 2001 |
factories | protected HashMap factories(Code) | | The trax TransformerFactory lookup table
|
incrementalProcessing | protected boolean incrementalProcessing(Code) | | Is incremental processing turned on? (default for Xalan: no)
|
manager | protected ComponentManager manager(Code) | | |
resolver | protected SourceResolver resolver(Code) | | The source resolver used by this processor *
|
store | protected Store store(Code) | | The store service instance
|
useStore | protected boolean useStore(Code) | | Is the store turned on? (default is on)
|
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | Compose. Try to get the store
|
dispose | public void dispose()(Code) | | Dispose
|
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | Configure the component
|
resolve | public javax.xml.transform.Source resolve(String href, String base) throws TransformerException(Code) | | Called by the processor when it encounters
an xsl:include, xsl:import, or document() function.
Parameters: href - An href attribute, which may be relative or absolute. Parameters: base - The base URI in effect when the href attributewas encountered. A Source object, or null if the href cannot be resolved,and the processor should try to resolve the URI itself. throws: TransformerException - if an error occurs when trying toresolve the URI. |
setTransformerFactory | public void setTransformerFactory(String classname)(Code) | | Set the transformer factory used by this component
|
|
|