org.apache.cocoon.sax.component
Class XSLTTransformer

java.lang.Object
  extended by org.apache.cocoon.pipeline.component.AbstractPipelineComponent
      extended by org.apache.cocoon.sax.AbstractSAXPipelineComponent
          extended by org.apache.cocoon.sax.AbstractSAXProducer
              extended by org.apache.cocoon.sax.AbstractSAXTransformer
                  extended by org.apache.cocoon.sax.component.XSLTTransformer
All Implemented Interfaces:
Consumer, PipelineComponent, Producer, SAXConsumer, SAXPipelineComponent, SAXProducer, ContentHandler, LexicalHandler

public class XSLTTransformer
extends AbstractSAXTransformer


Constructor Summary
XSLTTransformer()
          Empty constructor, used in sitemap.
XSLTTransformer(URL source)
          Creates a new transformer reading the XSLT from the URL source.
XSLTTransformer(URL source, Map<String,Object> attributes)
          Creates a new transformer reading the XSLT from the URL source and setting the TransformerFactory attributes.
 
Method Summary
 void setConfiguration(Map<String,? extends Object> configuration)
          Pass component specific configuration parameters to the pipeline component in a generic way.
 void setParameters(Map<String,? extends Object> parameters)
          Sets the XSLT parameters to be applied to XSLT stylesheet.
protected  void setSAXConsumer(SAXConsumer consumer)
          
 String toString()
           
 
Methods inherited from class org.apache.cocoon.sax.AbstractSAXTransformer
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, endSAXRecording, endTextRecording, findPrefixMapping, ignorableWhitespace, processingInstruction, removeRecorder, sendEndPrefixMapping, sendStartPrefixMapping, setDocumentLocator, setRecorder, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, startSAXRecording, startTextRecording
 
Methods inherited from class org.apache.cocoon.sax.AbstractSAXProducer
getSAXConsumer, setConsumer
 
Methods inherited from class org.apache.cocoon.pipeline.component.AbstractPipelineComponent
finish, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.pipeline.component.PipelineComponent
finish, setup
 

Constructor Detail

XSLTTransformer

public XSLTTransformer()
Empty constructor, used in sitemap.


XSLTTransformer

public XSLTTransformer(URL source)
Creates a new transformer reading the XSLT from the URL source.

Parameters:
source - the XSLT URL source

XSLTTransformer

public XSLTTransformer(URL source,
                       Map<String,Object> attributes)
Creates a new transformer reading the XSLT from the URL source and setting the TransformerFactory attributes. This constructor is useful when users want to perform XSLT transformation using xsltc.

Parameters:
source - the XSLT URL source
attributes - the Transformer Factory attributes
Method Detail

setParameters

public void setParameters(Map<String,? extends Object> parameters)
Sets the XSLT parameters to be applied to XSLT stylesheet.

Parameters:
parameters - the XSLT parameters to be applied to XSLT stylesheet

setConfiguration

public void setConfiguration(Map<String,? extends Object> configuration)
Pass component specific configuration parameters to the pipeline component in a generic way. This is useful in environments that automatically assemble pipelines with their components and can't use the components constructors or setters.

Specified by:
setConfiguration in interface PipelineComponent
Overrides:
setConfiguration in class AbstractPipelineComponent
Parameters:
configuration - The Map of configuration parameters.

setSAXConsumer

protected void setSAXConsumer(SAXConsumer consumer)

Overrides:
setSAXConsumer in class AbstractSAXProducer

toString

public String toString()
Overrides:
toString in class AbstractSAXProducer


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.