Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 50983 invoked from network); 25 Oct 2005 13:44:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Oct 2005 13:44:29 -0000 Received: (qmail 9317 invoked by uid 500); 25 Oct 2005 13:44:20 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 9200 invoked by uid 500); 25 Oct 2005 13:44:20 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 9181 invoked by uid 99); 25 Oct 2005 13:44:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 06:44:17 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 01AB6220 for ; Tue, 25 Oct 2005 15:43:56 +0200 (CEST) Message-ID: <2136491728.1130247836004.JavaMail.jira@ajax.apache.org> Date: Tue, 25 Oct 2005 15:43:56 +0200 (CEST) From: "Helma van der Linden (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Reopened: (COCOON-391) DigesterTransformer donation Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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: > src="org.apache.cocoon.transformation.DigesterTransformer"/> > > > value="....... .transformation.helper.PrepareDigester"/> > value="...... .transformation.helper.ProcessDigesterResult"/> > > 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