org.apache.cocoon.sax.component
Class XSLTTransformer
java.lang.Object
org.apache.cocoon.pipeline.component.AbstractPipelineComponent
org.apache.cocoon.sax.AbstractSAXPipelineComponent
org.apache.cocoon.sax.AbstractSAXProducer
org.apache.cocoon.sax.AbstractSAXTransformer
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. |
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 |
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 sourceattributes
- the Transformer Factory attributes
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.