public abstract class AbstractXSLTTransformation extends AbstractTransformation
SdxObject.ConfigurationNode
_resolver, PARAMETER_NAME_DISABLE, PARAMETER_NAME_ENABLE, parameters, transParameters
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
ATTRIBUTE_KEEP, ATTRIBUTE_SRC, ATTRIBUTE_TH, CLASS_NAME_SUFFIX, PACKAGE_QUALNAME
DEFAULT_ENCODING
Constructor and Description |
---|
AbstractXSLTTransformation() |
Modifier and Type | Method and Description |
---|---|
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.
|
abstract java.lang.String |
getTransformerFactory()
Returns the XSLT processor factory to use (Xalan, Saxon, ...)
|
protected boolean |
initToSax()
Init the DefaultContext class _xmlizable_objects with the objects in order to describ them in XML
|
void |
setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
Sets the XMLConsumer for this transformation.
|
void |
startDocument() |
getClassNameSuffix, getParameters, initVolatileObjectsToSax, isStepEnabled, recycle, service, setParameters, shouldKeepResult, verifyConfigurationParameters
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping
setContentHandler, setLexicalHandler
getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
getId, setId
getDescription, setDescription
getEncoding, setEncoding
getLocale, getXmlLang, setLocale, setXmlLang
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.Configurable
configure
in class AbstractTransformation
configuration
- 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.ConfigurationException
public void setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
setConsumer
in interface org.apache.cocoon.xml.XMLProducer
setConsumer
in class org.apache.cocoon.xml.AbstractXMLProducer
consumer
- The consumer for the SAX events of this transformationpublic void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.apache.cocoon.xml.AbstractXMLPipe
org.xml.sax.SAXException
protected boolean initToSax()
AbstractSdxXMLPipe
initToSax
in class AbstractTransformation
public abstract java.lang.String getTransformerFactory()
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.