org.apache.cocoon.transformation |
|
Java Source File Name | Type | Comment |
AbstractDOMTransformer.java | Class | An Abstract DOM Transformer, for use when a transformer needs a DOM-based
view of the document.
Subclass this interface and implement transform(Document doc) .
If you need a ComponentManager there is an instance variable
manager for use.
author: Ross Burton author: Bruce G. |
AbstractExtractionTransformer.java | Class | This transformer sieves an incoming stream of xml
and feeds a DOMBuilder with it. |
AbstractSAXTransformer.java | Class | This class is the basis for all transformers. |
AbstractTransformer.java | Class | |
AugmentTransformer.java | Class | |
CachingCIncludeTransformer.java | Class | This transformer triggers for the element include in the
namespace "http://apache.org/cocoon/include/1.0".
The src attribute contains the url which points to
an xml resource which is include instead of the element.
With the attributes element , ns and
prefix it is possible to specify an element
which surrounds the included content.
Validity of cached pipelines is calculated not by comparing old and new
IncludeCacheValidity objects (as in AggregatedCacheValidity) but by comparing
timestamps. |
CIncludeTransformer.java | Class | author: Carsten Ziegeler author: Andrew C. |
CIncludeTransformerTestCase.java | Class | A simple testcase for FilterTransformer. |
CleanupTransformer.java | Class | Cleanup transformer: Removes excess whitespace while adding some where needed
for legibility. |
DASLTransformer.java | Class | This transformer performs DASL queries on DASL-enabled WebDAV servers.
It expects a "query" element in the "http://cocoon.apache.org/webdav/dasl/1.0"
namespace containing the DASL query to execute, with a "target" attribute specifiyng
the webdav:// or http:// URL for the target WebDAV server. |
DeliTransformer.java | Class | This Transformer is used to transform this incoming SAX stream using
a XSLT stylesheet and have parameters available to the stylesheet
augmented by the DELI CC/PP user-agent profile database
This transformer extends the default TraxTransformer and thus inherits
all the properties and configuration parameters of that transformer. |
EncodeURLTransformer.java | Class | |
ExtendedParserTransformer.java | Class | |
FilterTransformer.java | Class | |
FilterTransformerTestCase.java | Class | A simple testcase for FilterTransformer. |
FragmentExtractorTransformer.java | Class | The transformation half of the FragmentExtractor. |
HTMLTransformer.java | Class | Converts (escaped) HTML snippets into JTidied HTML.
This transformer expects a list of elements, passed as comma separated
values of the "tags" parameter. |
I18nTransformer.java | Class | |
I18NTransformerTestCase.java | Class | A simple testcase for FilterTransformer. |
IncludeTransformer.java | Class | A simple transformer including resolvable sources (accessed through
Cocoon's
SourceResolver ) from its input.
Inclusion is triggered by the <include ... |
IncrementTransformer.java | Class | Increment context attribute "count" for testing purposes. |
JPathTransformer.java | Class | |
JXTemplateTransformer.java | Class | |
LDAPTransformer.java | Class | The LDAPTransformer can be plugged into a pipeline to transform
the SAX events into queries and responses to/from a LDAP interface. |
LexicalTransformer.java | Class | This transfomer transforms special mark text part of a XML file into lexemes by using a lexicon
file. |
LexicalTransformerTestCase.java | Class | |
LinkRewriterTransformer.java | Class | Rewrites URIs in links to a value determined by an InputModule.
The URI scheme identifies the InputModule to use, and the rest of the URI is
used as the attribute name.
Example
For instance, if we had an
org.apache.cocoon.components.modules.input.XMLFileModule , configured to
read values from an XML file:
<site>
<faq>
<how_to_boil_eggs href="faq/eggs.html"/>
</faq>
</site>
mapped to the prefix 'site:', then <link
href="site:/site/faq/how_to_boil_eggs/@href"> would be replaced
with <link href="faq/eggs.html">
InputModule Configuration
InputModules are configured twice; first statically in
cocoon.xconf , and then dynamically at runtime, with dynamic
configuration (if any) taking precedence. |
LogTransformer.java | Class | |
LuceneIndexTransformer.java | Class | A lucene index creation transformer.
This transformer reads a document with elements in the namespace
http://apache.org/cocoon/lucene/1.0 , and creates a new Lucene Index,
or updates an existing one.
It has several parameters which can be set in the sitemap component configuration or as
parameters to the transformation step in the pipeline, or finally as attributes of the root element
in the source XML document. |
LuceneIndexTransformer2.java | Class | |
LuceneIndexTransformerOptimized.java | Class | A lucene index creation transformer. |
NekoHTMLTransformer.java | Class | Converts (escaped) HTML snippets into tidied HTML using the NekoHTML library.
This transformer expects a list of elements, passed as comma separated
values of the "tags" parameter. |
ParserTransformer.java | Class | This transfomer transforms lexical tokens in a XML file into a XML hirachy by using a grammar
file. |
ParserTransformerTestCase.java | Class | |
PatternTransformer.java | Class | This transfomer transforms text pattern of a XML file into lexemes by using a lexicon file. |
PatternTransformerTestCase.java | Class | |
ReadDOMSessionTransformer.java | Class | |
RoleFilterTransformer.java | Class | |
ServiceableTransformer.java | Class | This class can be used as a base class for own transformer implementations
that need to lookup other components. |
SimpleFormInstanceExtractionTransformer.java | Class | |
SimpleFormTransformer.java | Class | |
SourcePropsWritingTransformer.java | Class | This transformer allows you to set and remove properties on an InspectableSource. |
SourceWritingTransformer.java | Class | |
SQLTransformer.java | Class | The SQLTransformer can be plugged into a pipeline to transform
SAX events into updated or queries and responses to/from a SQL interface.
It is declared and configured as follows:
<map:transformers default="...">
<map:transformer name="sql" src="org.apache.cocoon.transformation.SQLTransformer">
<old-driver>false</old-driver>
<connection-attempts>5</connection-attempts>
<connection-waittime>5000</connection-waittime>
</map:transformer>
</map:transformers>
It can be used in the sitemap pipeline as follows:
<map:transform type="sql">
<map:parameter name="own-connection" value="..."/>
<map:parameter name="use-connection" value="..."/>
<map:parameter name="dburl" value="..."/>
<map:parameter name="username" value="..."/>
<map:parameter name="password" value="..."/>
<map:parameter name="show-nr-or-rows" value="false"/>
<map:parameter name="doc-element" value="rowset"/>
<map:parameter name="row-element" value="row"/>
<map:parameter name="namespace-uri" value="http://apache.org/cocoon/SQL/2.0"/>
<map:parameter name="namespace-prefix" value="sql"/>
<map:parameter name="clob-encoding" value=""/>
</map:transform>
The following DTD is valid:
<!ENTITY % param "(own-connection?,(use-connection|(dburl,username,password))?,show-nr-or-rows?,doc-element?,row-element?,namespace-uri?,namespace-prefix?,clob-encoding?)">
<!ELEMENT execute-query (query,(in-parameter|in-xml-parameter|out-parameter)*,execute-query?, %param;)>
<!ELEMENT own-connection (#PCDATA)>
<!ELEMENT use-connection (#PCDATA)>
<!ELEMENT query (#PCDATA | substitute-value | ancestor-value | escape-string| xml)*>
<!ATTLIST query name CDATA #IMPLIED isstoredprocedure (true|false) "false" isupdate (true|false) "false">
<!ELEMENT substitute-value EMPTY>
<!ATTLIST substitute-value name CDATA #REQUIRED>
<!ELEMENT ancestor-value EMPTY>
<!ATTLIST ancestor-value name CDATA #REQUIRED level CDATA #REQUIRED>
<!ELEMENT in-parameter EMPTY>
<!ATTLIST in-parameter nr CDATA #REQUIRED type CDATA #REQUIRED>
<!ELEMENT in-xml-parameter EMPTY>
<!ATTLIST in-xml-parameter nr CDATA #REQUIRED type CDATA #REQUIRED>
<!ELEMENT out-parameter EMPTY>
<!ATTLIST out-parameter nr CDATA #REQUIRED name CDATA #REQUIRED type CDATA #REQUIRED>
<!ELEMENT escape-string (#PCDATA)>
<!ELEMENT xml (#PCDATA)>
Each query can override default transformer parameters. |
StripNameSpacesTransformer.java | Class | |
TagTransformer.java | Class | Transformer which implements the taglib functionalty. |
TeeTransformer.java | Class | |
Transformer.java | Interface | |
TraxTransformer.java | Class | author: Pierpaolo Fumagalli author: Davanum Srinivas author: Carsten Ziegeler author: Giacomo Pati author: Ovidiu Predescu author: Mark H. |
TraxTransformerTestCase.java | Class | |
UuidToUrlTransformer.java | Class |
Transform
a5d30250-2b7c-11db-98f0-bef7b2781cf0:en
into the corresponding URL. |
ValidatingTransformer.java | Class | |
ValidationReportTransformer.java | Class | The
ValidationReportTransformer provides a
Transformer validating documents while being processed in a Cocoon pipeline, and preparing
a report of all detected inconsistancies according the specified schema.
The only defined (but not required) configuration for this component is
<grammar>...string...</grammar>
indicating the default grammar language of the schemas to use.
This configuration parameter can be overridden by specifying the
grammar parameter when using this
Transformer in a
pipeline.
If no grammar is specified (either as a configuration, or a parameter) this
transformer will instruct the
Validator to try and guess the grammar
of the schema being parsed.
The report prepared by this transformer will look like the following:
<report xmlns="http://apache.org/cocoon/validation/1.0">
<warning system="..." public="..." line="..." column="...">
... |
VariableRewriterTransformer.java | Class | Rewrites URIs in links to a value determined by an InputModule.
The URI scheme identifies the InputModule to use, and the rest of the URI is
used as the attribute name.
Example
For instance, if we had an
org.apache.cocoon.components.modules.input.XMLFileModule , configured to
read values from an XML file:
<site>
<faq>
<how_to_boil_eggs href="faq/eggs.html"/>
</faq>
</site>
mapped to the prefix 'site:', then <link
href="site:/site/faq/how_to_boil_eggs/@href"> would be replaced with
<link href="faq/eggs.html">
InputModules are configured twice; first statically in
cocoon.xconf , and then dynamically at runtime, with dynamic
configuration (if any) taking precedence. |
Web3RfcTransformer.java | Class | |
WebDAVTransformer.java | Class | A general purpose, low level webdav transformer. |
WriteDOMSessionTransformer.java | Class | |
XAbstractDOMTransformerTestCase.java | Class | A simple testcase for AbstractDOMTransformer. |
XIncludeTransformer.java | Class | |
XIncludeTransformerTestCase.java | Class | A simple testcase for FilterTransformer. |
XMLDBTransformer.java | Class | This transformer allows to perform resource creation, deletion, and
XUpdate command execution in XML:DB. |