From dev-return-102846-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Tue Jul 5 12:49:39 2011 Return-Path: X-Original-To: apmail-cocoon-dev-archive@www.apache.org Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CB1A48BB for ; Tue, 5 Jul 2011 12:49:39 +0000 (UTC) Received: (qmail 64927 invoked by uid 500); 5 Jul 2011 12:49:39 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 64875 invoked by uid 500); 5 Jul 2011 12:49:38 -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 64868 invoked by uid 99); 5 Jul 2011 12:49:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 12:49:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simone.tripodi@gmail.com designates 209.85.213.51 as permitted sender) Received: from [209.85.213.51] (HELO mail-yw0-f51.google.com) (209.85.213.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 12:49:33 +0000 Received: by ywm39 with SMTP id 39so2939703ywm.24 for ; Tue, 05 Jul 2011 05:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=T0g4WiddQ84PRsqaBuCFLSDCKg12nMlodD5DH0yigzU=; b=Iz+oeuJE3EBlF5LT8GjhSoolK+npH86hDwI4BZTNDds5qe+MH94ZGDedyLQiOmS5ce 9mscEPBqTdCMKIjibpXp5i6f2HcY11jJFwwoBG8xJUmN340NOrLO7EgV0RL8oBwN2DNF Jax/fwuCD1eiQUFV0L5Z/+W8IVWpB5ShdyYj8= MIME-Version: 1.0 Received: by 10.151.58.8 with SMTP id l8mr6462031ybk.242.1309870152778; Tue, 05 Jul 2011 05:49:12 -0700 (PDT) Sender: simone.tripodi@gmail.com Received: by 10.151.9.9 with HTTP; Tue, 5 Jul 2011 05:49:12 -0700 (PDT) In-Reply-To: <7C655C04B6F59643A1EF66056C0E095EA99D01@eusex01.sweden.ecsoft> References: <7C655C04B6F59643A1EF66056C0E095EA99D01@eusex01.sweden.ecsoft> Date: Tue, 5 Jul 2011 14:49:12 +0200 X-Google-Sender-Auth: qDxaAGyo3o1GiKSii0u7WOfyqQM Message-ID: Subject: Re: Using XQJ API with Cocoon3 From: Simone Tripodi To: dev@cocoon.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Robby!!! as I wrote you on Twitter, this is something *really* interesting that must be included in the Cocoon distribution :) We can include that module quite easy, all you have to do is * checkout/update the C3 /trunk; * add needed dependencies in the in the /parent/pom.xml * add your code in the /cocoon-optional module in a proper package - see the existing codebase as samples how we already managed 3rd parties integrations * make a patch and submit it on JIRA Looking forward to hear from you soon, all the best!!! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Jul 5, 2011 at 2:42 PM, Robby Pelssers w= rote: > Hi all, > > As Cocoon is an excellent framework for dealing with XML and hence in a l= ot of cases is stored in a XML Database it makes sense to offer out-of-the = box functionality to extract data from it. =C2=A0From my personal experienc= e I think most XMLDB implementers have abondoned the XMLDB API initiative a= nd are focusing on XQuery for Java (XQJ) instead. > > I just started playing with the API today and wrote a bit of code to get = more acquainted. =C2=A0I would like to start a little thread to find out if= we can add a new XQJGenerator to the optional cocoon module. > > A first little exercise is mentioned on my blog but it's far from product= ion ready. > > - TODO: allow wrapping query result in 1 root tag > - Problem: the XQJ interface jar is packaged along with the implementatio= ns (Sedna, Exist, Marklogic). =C2=A0This means I had to actually declare a = maven dependency on the implementation specific jar (in this case sedna-xqj= -beta-5.jar). > > For the ones who think this would be a great add-on, check my first post = at http://robbypelssers.blogspot.com/2011/07/using-xqj-api-with-cocoon3.htm= l > > Kind regards, > Robby Pelssers >