Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » xslt » [javadoc | source]
org.apache.cocoon.components.xslt
public class: XSLTProcessorImpl [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.components.xslt.XSLTProcessorImpl

All Implemented Interfaces:
    URIResolver, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.parameters.Parameterizable, XSLTProcessor, org.apache.avalon.framework.component.Composable

Deprecated! Use - the avalon excalibur xslt processor instead.

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()).

Field Summary
protected  ComponentManager manager     
protected  Store store    The store service instance 
protected  HashMap factories    The trax TransformerFactory lookup table 
protected  SAXTransformerFactory factory    The trax TransformerFactory this component uses 
protected  boolean useStore    Is the store turned on? (default is on) 
protected  boolean incrementalProcessing    Is incremental processing turned on? (default for Xalan: no) 
protected  SourceResolver resolver    The source resolver used by this processor 
protected  TraxErrorHandler errorHandler    The error handler for the transformer 
Method from org.apache.cocoon.components.xslt.XSLTProcessorImpl Summary:
compose,   dispose,   getTransformerHandler,   getTransformerHandler,   parameterize,   resolve,   setSourceResolver,   setTransformerFactory,   transform
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.xslt.XSLTProcessorImpl Detail:
 public  void compose(ComponentManager manager) throws ComponentException 
      Deprecated!
    Compose. Try to get the store
 public  void dispose() 
      Deprecated!
    Dispose
 public TransformerHandler getTransformerHandler(Source stylesheet) throws ProcessingException 
      Deprecated!
 public TransformerHandler getTransformerHandler(Source stylesheet,
    XMLFilter filter) throws ProcessingException 
      Deprecated!
 public  void parameterize(Parameters params) throws ParameterException 
      Deprecated!
    Configure the component
 public Source resolve(String href,
    String base) throws TransformerException 
      Deprecated!
    Called by the processor when it encounters an xsl:include, xsl:import, or document() function.
 public  void setSourceResolver(SourceResolver resolver) 
Deprecated! The - processor can now simply lookup the source resolver.

      Deprecated!
    Set the source resolver used by this component
 public  void setTransformerFactory(String classname) 
      Deprecated!
    Set the transformer factory used by this component
 public  void transform(Source source,
    Source stylesheet,
    Parameters params,
    Result result) throws ProcessingException 
      Deprecated!