|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.xml.AbstractXMLProducer
|
+--org.apache.cocoon.xml.AbstractXMLPipe
|
+--fr.gouv.culture.sdx.pipeline.AbstractTransformation
|
+--fr.gouv.culture.sdx.pipeline.XSLTTransformation
A transformation using an XSLTProcessorImpl from Cocoon Basically a wrapper to provide a certain configuration option (stylesheet specification) and forwards events to a consumer after the transformation has been executed.
| Field Summary |
| Fields inherited from class fr.gouv.culture.sdx.pipeline.AbstractTransformation |
id, logger, manager, PARAMETER_NAME_DISABLE, PARAMETER_NAME_ENABLE, parameters, props, transParameters |
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, lexicalHandler, xmlConsumer |
| Fields inherited from interface fr.gouv.culture.sdx.pipeline.Transformation |
ATTRIBUTE_ID, ATTRIBUTE_KEEP, ATTRIBUTE_SRC, ATTRIBUTE_TH, ATTRIBUTE_TYPE, CLASS_NAME_SUFFIX, ELEMENT_NAME_TRANSFORMATION, PACKAGE_QUALNAME |
| Constructor Summary | |
XSLTTransformation()
Creates the transformation If logging is desired the logger should be set after creation. |
|
| Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Builds this object In addition to the parameters needed in the base configuration handled by the parent class, the "src" parameter is required and can be absolute or relative to the directory containing the application.xconf file or relative to the SDX installation. |
void |
setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
Sets the XMLConsumer for this transformation. |
void |
startDocument()
|
| Methods inherited from class fr.gouv.culture.sdx.pipeline.AbstractTransformation |
compose, enableLogging, getId, getParameters, isStepEnabled, recycle, setParameters, setProperties, shouldKeepResult, verifyConfigurationParameters |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Constructor Detail |
public XSLTTransformation()
AbstractTransformation.enableLogging(org.apache.avalon.framework.logger.Logger),
AbstractTransformation.compose(org.apache.avalon.framework.component.ComponentManager),
AbstractTransformation.setProperties(java.util.Hashtable),
configure(org.apache.avalon.framework.configuration.Configuration)| Method Detail |
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconfigure in class AbstractTransformationconfiguration - An Configuration object from the Pipeline
Sample configuration entry:
<sdx:transformation src = "path to stylesheet, can be absolute or relative to the directory containing this file" sdx:id = "step3" sdx:type = "xslt" keep = "true"/>
org.apache.avalon.framework.configuration.ConfigurationExceptionpublic void setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
setConsumer in interface org.apache.cocoon.xml.XMLProducersetConsumer in class org.apache.cocoon.xml.AbstractXMLProducerconsumer - The consumer for the SAX events of this transformation
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.apache.cocoon.xml.AbstractXMLPipeorg.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||