From cocoon-dev-return-40792-apmail-xml-cocoon-dev-archive=xml.apache.org@xml.apache.org Thu Apr 24 18:33:34 2003 Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 12970 invoked by uid 500); 24 Apr 2003 18:33:33 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 12950 invoked from network); 24 Apr 2003 18:33:33 -0000 Received: from mail.gmx.net (213.165.65.60) by daedalus.apache.org with SMTP; 24 Apr 2003 18:33:33 -0000 Received: (qmail 25650 invoked by uid 65534); 24 Apr 2003 18:33:36 -0000 Received: from unknown (EHLO WRPO) (193.81.161.144) by mail.gmx.net (mp003-rz3) with SMTP; 24 Apr 2003 20:33:36 +0200 From: =?iso-8859-1?Q?Reinhard_P=F6tz?= To: Subject: RE: [Rant] Flow + JXTemplate (Was: Re: [FYI] Stefano's Linotype) Date: Thu, 24 Apr 2003 20:32:44 +0200 Message-ID: <002101c30a8f$e5bac6d0$1e01a8c0@WRPO> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030424124501.L90113-100000@neuagency.com> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Tony, I recommend you to have a look at the Petstore. Christopher has done a great job providing the examples in 4 different ways (jxpath, jexl, xsp and velocity). My first impression is that it looks very clear, simple and well-thought to me: You control the flow using the Cocoon control flow and "send" data to the pipeline which is responsible for the view using the object model. Additionally you have access to some common objects like request or the continuation (and some more). This data can be accessed with those 4 "languages" which provide some simple control structures like choose, if, and some more. And here Christopher compared the 4 languages: http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=105029949912114&w=2 Hope this helps! Cheers Reinhard > -----Original Message----- > From: Tony Collen [mailto:tcollen@neuagency.com] > Sent: Thursday, April 24, 2003 7:18 PM > To: cocoon-dev@xml.apache.org > Subject: [Rant] Flow + JXTemplate (Was: Re: [FYI] Stefano's Linotype) > > > Alright, now that I'm fresh from a night of sleep, and I'm > not all dizzy and tired, I'll take another poke at this: > > I'm starting to dig into actually using the Flow, and I'm > having a hard time understanding using the JXTemplate(Generator). > > Rather, I'm having a hard time understanding why we need a > templating language inside our nice XSLT templating system. > > From a user's perspective, I already invested a lot of time > learning XSLT (and I do not even claim to be extremely > comfortable with that, too!), so why should I take the time > to learn another templating language? Argh!! This was > supposed to be easy, but now it feels like it's getting > horribly complex again. > > It's nice the Generator is fast [1], but it still feels like > it's doing the work of a Generator and a Transformer, which > pokes me in a weird way for some reason. > > Maybe I'm stupid, and just not seeing the advantages. > > Last night, when I dove into all of the Flow stuff, I got to > the point to where I had to reference "bizData" in my view > pages. I was following the patterns in Stefano's Linotype > code, using . My problem then > came around to where I couldn't even get the Continuation ID, > due to the difference between Stefano's code and the > JXTemplate(Generator) in CVS. > > So I go looking for docs, and all I find is the Javadocs for > JXTemplate, but the Javadocs weren't built for the things in > Scratchpad! Argh! > > I digress. It's been a long week and finals are about to > hit. I guess I'm just frustrated at not having working > samples and not getting the docs for the > JXTemplate(Generator). Which reminds me. I think the > JXTemplate generator in scratchpad should be named > JXTemplateGenerator for consistency's sake. > > So here's my plea, can someone who's "in-the-know" about > JXTemplate whip up a nice sample that uses the tags (choose, > import, etc) in a meaningful and useful way for the annoying > n00bs (me)? Or perhaps another sample in the Flow directory > that correctly uses the new Generator? .. I'll promise to > chill out, and get over the bump in complexity and having to learn > Yet Another Templating Language... hopefully sooner rather > than later :) > > > Regards, > > Tony > > [1] > http://marc.theaimsgroup.com/?l=xml-> cocoon-dev&m=105029949912114&w=2 > > -- > Tony Collen > ICQ: 12410567 > -- > Cocoon: Internet Glue (A Cocoon Weblog) http://manero.org/weblog/ > -- > > >