Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 57132 invoked from network); 31 Jan 2006 08:39:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jan 2006 08:39:36 -0000 Received: (qmail 61834 invoked by uid 500); 31 Jan 2006 08:39:28 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 61761 invoked by uid 500); 31 Jan 2006 08:39:28 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 61749 invoked by uid 99); 31 Jan 2006 08:39:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 00:39:27 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.33.205.11] (HELO baracus.dreamhost.com) (66.33.205.11) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 00:39:27 -0800 Received: from Franklin (S01060050ba4d1d38.vc.shawcable.net [24.85.226.99]) by baracus.dreamhost.com (Postfix) with ESMTP id 6884E10F4A1 for ; Tue, 31 Jan 2006 00:39:05 -0800 (PST) From: "Combinational Logic" To: Subject: RE: Updating Xindice with Request Data Date: Tue, 31 Jan 2006 00:39:02 -0800 Organization: www.soc-ip.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0084_01C625FE.BCAC57D0" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcYmPZTs4nznwDhjQn63U3kJKEqhugAATKTA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: Message-Id: <20060131083905.6884E10F4A1@baracus.dreamhost.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0084_01C625FE.BCAC57D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sorry I don't have time to describe all the details, but a brief overview of what worked for me follows: Use flow to display and bind the CForm to the results of an xmldb query then save the results back to a document. Pass the document to a JX pipeline to get it back into the pipeline, then use XSLT to generate stuff in the XUpdate namespace and pass it through an XMLDB transformer. It would be nice to package /abstract this sort of operation up as it seems to be a re-occurring design pattern. At least it was for my cocoon development. Perhaps someone knows of a better way. Thoughts? CL _____ From: Mike Casey [mailto:werdafucami@gmail.com] Sent: Monday, January 30, 2006 5:10 PM To: users@cocoon.apache.org Subject: Updating Xindice with Request Data Hi All, I am currently working on an implementation of a wiki type site that uses XML for Wiki syntax, partly to help learn NXBs/Cocoon and partly because I could not find a suitable product out there to meet my needs. The XMLDB block samples has some good examples on how to update Xindice using XML files which is all very well in good however I need to figure out how to pull xml data out of a CForm and then push it into Xindice. The sample has the pipeline Where ofcourse the generator looks for a physical xml file. Does anyone have any hints on how I might acheive this? I am reasonably new to Cocoon so forgive me if the answer you return is blatantly obvious! Cheers, Mike Casey Wellington New Zealand ------=_NextPart_000_0084_01C625FE.BCAC57D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Sorry I don’t have time to = describe all the details, but a brief overview of what worked for me = follows:

 

Use flow to display and bind the = CForm to the results of an xmldb query then save the results back to a = document.  Pass the document to a JX pipeline to get it back into the pipeline, then use = XSLT to generate stuff in the XUpdate namespace and pass it through an XMLDB transformer. 

 

It would be nice to package = /abstract this sort of operation up as it seems to be a re-occurring design = pattern…  At least it was for my cocoon development.  Perhaps someone knows = of a better way.  Thoughts?

 

CL

 


From: Mike = Casey [mailto:werdafucami@gmail.com]
Sent: Monday, January 30, = 2006 5:10 PM
To: = users@cocoon.apache.org
Subject: Updating Xindice = with Request Data

 

Hi All,

I am currently working on an implementation of a wiki type site that = uses XML for Wiki syntax, partly to help learn NXBs/Cocoon and partly because I = could not find a suitable product out there to meet my needs.

The XMLDB block samples has some good examples on how to update Xindice = using XML files which is all very well in good however I need to figure out = how to pull xml data out of a CForm and then push it into Xindice. The sample = has the pipeline

<map:match pattern=3D"populate">
        <map:generate src=3D"populate.xml"/>
        <map:transform = type=3D"cinclude"/>
        <map:transform type=3D"xmldb"/>
        <map:serialize/>
 </map:match>

Where ofcourse the generator looks for a physical xml file. Does anyone = have any hints on how I might acheive this? I am reasonably new to Cocoon so = forgive me if the answer you return is blatantly obvious!

Cheers,

Mike Casey
Wellington
New = Zealand

------=_NextPart_000_0084_01C625FE.BCAC57D0--