cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helma van der Linden (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (COCOON-391) DigesterTransformer donation
Date Tue, 25 Oct 2005 13:43:56 GMT
     [ http://issues.apache.org/jira/browse/COCOON-391?page=all ]
     
Helma van der Linden reopened COCOON-391:
-----------------------------------------


reopened just to set the resolution to fixed

> DigesterTransformer donation
> ----------------------------
>
>          Key: COCOON-391
>          URL: http://issues.apache.org/jira/browse/COCOON-391
>      Project: Cocoon
>         Type: Improvement
>   Components: - Components: Sitemap
>     Versions: 2.0.5-dev (Current CVS)
>  Environment: Operating System: All
> Platform: All
>     Reporter: Michael Homeijer
>     Assignee: Cocoon Developers Team
>     Priority: Minor
>  Attachments: DigesterCommand.java, DigesterTransformer.java
>
> See also "http://jakarta.apache.org/commons/digester.html"
> ----------- Overview --------------------
> With the digester transformer it is possible to convert XML to Java classes. 
> This does not apply only to data, but also applies to classes that perform 
> functionality while they
> are created and their methods are called by the digester. By using "factory-
> create-rule" possibilities from the digester it is even possible to update
> and existing java class structure instead of only creating new java structures.
> Our primary use for it is to create a clean connection/seperation from a Cocoon 
> front-end and an EJB back-end.
> --------- Configuration ------------------
> To use the DigesterTransformer in Cocoon, the jakarta commons digester has to 
> be available in Cocoon (including the jars the digester depends upon).
> Declaration of the transformer component:
> <map:transformer logger="sitemap.transformer.digester" name="digester" 
> src="org.apache.cocoon.transformation.DigesterTransformer"/>
> <map:generate src="data.xml"/>
> <map:transform type="digester" src="digester.xml"> 
> 	<map:parameter name="precommand" 
> value="....... .transformation.helper.PrepareDigester"/>
> 	<map:parameter name="postcommand" 
> value="...... .transformation.helper.ProcessDigesterResult"/>
> </map:transform>
> The input for the transformer is XML data that must be transformed into java 
> classes.
> The src attribute for the transformer specifies the xml rule input for the 
> digester.
> The values specified in precommand and postcommand are classes that must 
> implement
> org.apache.cocoon.transformation.helper.DigesterCommand
> --------- Note ---------------
> For now the transformer just outputs the input xml data. Additional data can be 
> output in the sax stream with the use of the precommand and postcommand
> specification.
> Enjoy..

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message