Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 18344 invoked from network); 20 Jul 2005 06:43:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2005 06:43:16 -0000 Received: (qmail 57004 invoked by uid 500); 20 Jul 2005 06:43:08 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 56961 invoked by uid 500); 20 Jul 2005 06:43:08 -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 56948 invoked by uid 99); 20 Jul 2005 06:43:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2005 23:43:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jh@schaubroeck.be designates 193.75.212.6 as permitted sender) Received: from [193.75.212.6] (HELO mail2.schaubroeck.be) (193.75.212.6) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2005 23:43:02 -0700 Received: (from root@localhost) by mail2.schaubroeck.be (8.12.3/8.12.3/ESMTP) id j6K6h43l028307 for users@cocoon.apache.org; Wed, 20 Jul 2005 08:43:04 +0200 Received: from [193.74.194.207] ([193.74.194.207]) by mail2.schaubroeck.be (8.12.3/8.12.3/ESMTP) with ESMTP id j6K6h3Up028288 for ; Wed, 20 Jul 2005 08:43:03 +0200 Message-ID: <42DDF278.5000900@schaubroeck.be> Date: Wed, 20 Jul 2005 08:43:04 +0200 From: Jan Hoskens User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Advice on site design - really close References: <20050720022540.84307.qmail@web60616.mail.yahoo.com> In-Reply-To: <20050720022540.84307.qmail@web60616.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -100 () X-Spam-Report: mail2: -100 USER_IN_WHITELIST From: address is in the user's white-list X-Virus-Scan: by Schaubroeck X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N footh wrote: >I read about flow before and in fact I intended ot use >it once I got this supposedly "basic" part of the site >resolved. > >Anyway, I re-read the documentation and I can't seem >to find out how it would help the situation described >below. How can I use flow logic combine 5 pages that >require dynamic processing into one page? > > There are several ways to do this. Take a look at the docs for: aggregating (sitemap element), cinclude or xinclude (transformers). I'll give a small example: - Let each request go through one sitemap matcher - This matcher has either an aggregate: (template contains include tags for each different part) (this step reads the include tags and calls the different pipes to include) - each part for menu/sidebars/... can be processed by separate matchers in an internal-only pipeline - each matcher can contain its own flowscript functions if needed(thus program/call anything you like), or you can produce general information in your template sitemap matcher (eg by action , own component or again flowscript, doesn't matter) and set these in your session or context so it's available within the different parts. - the template matcher will then contain all the information and you can style this to any outputtype you want (probably just plain html). Just remember to leave your html styling and javascript in different files and include these. When creating your own generator/components remember to make these reusable and that there is already a lot of funcionality available. Kind regards, Jan >--- Ralph Goers wrote: > > > >>It sounds like you need to take a look at flowscript >>or javaflow. >> >>footh wrote: >> >> >> >>>I'm converting my site from pure JSP to Cocoon. >>> >>>I've read lots of tutorials on Cocoon and I've come >>>really close to getting the site to work the way I >>>want but I've hit a few snags. >>> >>>Basically, the site has a header, footer and two >>>sidebars with content in the middle. In JSP, I >>> >>> >>would >> >> >>>just have includes on every page for the header, >>>footer, etc. However, in Cocoon, I was hoping I >>> >>> >>could >> >> >>>have one "template" page that decided the layout. >>> >>>I was able to create this model, mainly using this >>>tutorial: >>> >>> >>http://www.cocooncenter.org/articles/navigation.html >> >> >>>I created an XSL stylesheet for the header, footer, >>>and two sidebars, along with associated XML content >>>files and imported those into a "main" stylesheet. >>>Then, in the main stylesheet, I apply the templates >>>for the constant parts by using the document >>> >>> >>function >> >> >>>in XSL, for ex: >>> >>>>>select="document('..\menus\header.xml')/*"/> >>> >>>For the main content on each page, I have separate >>> >>> >>XML >> >> >>>files that, for now, are simply a dump of static >>> >>> >>HTML >> >> >>>and I use the copy-of XSL tag to insert it into the >>>page. Later, I'll make these XSP pages and >>>dynamically generate the content. >>> >>>Here's where I've hit a couple issues. The header, >>>footer and sidebars contain some dynamic content. >>> >>> >>For >> >> >>>example, if a person is logged in, the header will >>>show something different. I was able to get around >>>this by passing in the "remoteUser" parameter to >>> >>> >>the >> >> >>>stylesheet in the pipeline and then using >>> >>> >>stylesheet >> >> >>>logic. But, there's also other logic I will need >>> >>> >>to >> >> >>>process that's a bit more complicated (ex. >>> >>> >>depending >> >> >>>on the user's role, etc). With my current layout, >>> >>> >>I >> >> >>>can't seem to find a way to add logic that can use >>>Java to these mostly static blocks. >>> >>>I've tried aggregating, but that doesn't seem to >>> >>> >>work >> >> >>>well with XSP. Also, I'd like to not use cinclude >>>since I'd like to avoid including the other >>> >>> >>elements >> >> >>>on every page like in JSP. >>> >>>Might anyone have any suggestions for me out there? >>> >>>Thanks a ton. >>> >>>JF >>> >>> >>> >>> >>>__________________________________________________ >>>Do You Yahoo!? >>>Tired of spam? Yahoo! Mail has the best spam >>> >>> >>protection around >> >> >>>http://mail.yahoo.com >>> >>> >>> >>--------------------------------------------------------------------- >> >> >>>To unsubscribe, e-mail: >>> >>> >>users-unsubscribe@cocoon.apache.org >> >> >>>For additional commands, e-mail: >>> >>> >>users-help@cocoon.apache.org >> >> >>> >>> >>> >>> >> >> >> >--------------------------------------------------------------------- > > >>To unsubscribe, e-mail: >>users-unsubscribe@cocoon.apache.org >>For additional commands, e-mail: >>users-help@cocoon.apache.org >> >> >> >> > > > > >__________________________________ >Yahoo! Mail >Stay connected, organized, and protected. Take the tour: >http://tour.mail.yahoo.com/mailtour.html > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >For additional commands, e-mail: users-help@cocoon.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org