org.apache.cocoon.transformation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » apache lenya 2.0 » org.apache.cocoon.transformation 
org.apache.cocoon.transformation
Java Source File NameTypeComment
AbstractDOMTransformer.javaClass 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.javaClass This transformer sieves an incoming stream of xml and feeds a DOMBuilder with it.
AbstractSAXTransformer.javaClass This class is the basis for all transformers.
AbstractTransformer.javaClass
AugmentTransformer.javaClass
CachingCIncludeTransformer.javaClass

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.javaClass
author:
   Carsten Ziegeler
author:
   Andrew C.
CIncludeTransformerTestCase.javaClass A simple testcase for FilterTransformer.
CleanupTransformer.javaClass Cleanup transformer: Removes excess whitespace while adding some where needed for legibility.
DASLTransformer.javaClass 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.javaClass 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.javaClass
ExtendedParserTransformer.javaClass
FilterTransformer.javaClass
FilterTransformerTestCase.javaClass A simple testcase for FilterTransformer.
FragmentExtractorTransformer.javaClass The transformation half of the FragmentExtractor.
HTMLTransformer.javaClass Converts (escaped) HTML snippets into JTidied HTML. This transformer expects a list of elements, passed as comma separated values of the "tags" parameter.
I18nTransformer.javaClass
I18NTransformerTestCase.javaClass A simple testcase for FilterTransformer.
IncludeTransformer.javaClass

A simple transformer including resolvable sources (accessed through Cocoon's SourceResolver ) from its input.

Inclusion is triggered by the <include ...

IncrementTransformer.javaClass Increment context attribute "count" for testing purposes.
JPathTransformer.javaClass
JXTemplateTransformer.javaClass
LDAPTransformer.javaClass The LDAPTransformer can be plugged into a pipeline to transform the SAX events into queries and responses to/from a LDAP interface.
LexicalTransformer.javaClass This transfomer transforms special mark text part of a XML file into lexemes by using a lexicon file.
LexicalTransformerTestCase.javaClass
LinkRewriterTransformer.javaClass 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.javaClass
LuceneIndexTransformer.javaClass

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.javaClass
LuceneIndexTransformerOptimized.javaClass A lucene index creation transformer.
NekoHTMLTransformer.javaClass 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.javaClass This transfomer transforms lexical tokens in a XML file into a XML hirachy by using a grammar file.
ParserTransformerTestCase.javaClass
PatternTransformer.javaClass This transfomer transforms text pattern of a XML file into lexemes by using a lexicon file.
PatternTransformerTestCase.javaClass
ReadDOMSessionTransformer.javaClass
RoleFilterTransformer.javaClass
ServiceableTransformer.javaClass This class can be used as a base class for own transformer implementations that need to lookup other components.
SimpleFormInstanceExtractionTransformer.javaClass
SimpleFormTransformer.javaClass
SourcePropsWritingTransformer.javaClass This transformer allows you to set and remove properties on an InspectableSource.
SourceWritingTransformer.javaClass
SQLTransformer.javaClass 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.javaClass
TagTransformer.javaClass Transformer which implements the taglib functionalty.
TeeTransformer.javaClass
Transformer.javaInterface
TraxTransformer.javaClass
author:
   Pierpaolo Fumagalli
author:
   Davanum Srinivas
author:
   Carsten Ziegeler
author:
   Giacomo Pati
author:
   Ovidiu Predescu
author:
   Mark H.
TraxTransformerTestCase.javaClass
UuidToUrlTransformer.javaClass

Transform a5d30250-2b7c-11db-98f0-bef7b2781cf0:en into the corresponding URL.

ValidatingTransformer.javaClass
ValidationReportTransformer.javaClass

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.javaClass 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.javaClass
WebDAVTransformer.javaClass A general purpose, low level webdav transformer.
WriteDOMSessionTransformer.javaClass
XAbstractDOMTransformerTestCase.javaClass A simple testcase for AbstractDOMTransformer.
XIncludeTransformer.javaClass
XIncludeTransformerTestCase.javaClass A simple testcase for FilterTransformer.
XMLDBTransformer.javaClass This transformer allows to perform resource creation, deletion, and XUpdate command execution in XML:DB.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.