Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 74503 invoked from network); 16 Mar 2006 13:51:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Mar 2006 13:51:03 -0000 Received: (qmail 92702 invoked by uid 500); 16 Mar 2006 13:51:01 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 92641 invoked by uid 500); 16 Mar 2006 13:51:01 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 92606 invoked by uid 99); 16 Mar 2006 13:51:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 05:51:01 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of williamstw@gmail.com designates 64.233.184.207 as permitted sender) Received: from [64.233.184.207] (HELO wproxy.gmail.com) (64.233.184.207) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 05:50:59 -0800 Received: by wproxy.gmail.com with SMTP id 55so377456wri for ; Thu, 16 Mar 2006 05:50:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b7AxScPFkU/kLnIArt58dOqrHNf0f4bxHDpRxYKY0Yup30tObl3yeDwzA14c51ywYHyPXTZH8opfBM3yhNpH6+rO2Bsv3sU0QW+vCiCVA5NCeLn5v0CmeavYuM1noJW4Exv71zoJw6rKMWnqOEPPFr8CkPVIiL5wR0TYz0tfVrM= Received: by 10.54.80.20 with SMTP id d20mr375810wrb; Thu, 16 Mar 2006 05:50:36 -0800 (PST) Received: by 10.54.124.17 with HTTP; Thu, 16 Mar 2006 05:50:36 -0800 (PST) Message-ID: <499888440603160550m130e1f95p46021fabdad40bf5@mail.gmail.com> Date: Thu, 16 Mar 2006 08:50:36 -0500 From: "Tim Williams" To: user@forrest.apache.org Subject: Re: Cocoon sitemaps and Forrest sitemaps In-Reply-To: <972AE0AAB416644FB6B70E86F502D24456D2F8@northexch01.kollnet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <972AE0AAB416644FB6B70E86F502D24456D2F8@northexch01.kollnet.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 3/16/06, Woods, Christopher wrote: > Hi Joe, > > Here is, at least, part of the puzzle: http://wiki.apache.org/cocoon/XMLD= BTransformer?highlight=3D%28xindice%29. I'll share a few of my conclusions= and welcome anyone on the list to chime in with comments or suggestions. I= realize that this post may seem to be more of a cocoon or xindice post at = times but because the site is ultimately built using forrest I think it's a= ppropriate to post to this list. > Have you had a look at: http://www.cocooncenter.org/articles/xindice.html ? Not sure if it helps but it sounds like you're querying and not updating so using the psuedo-protocol in a generator would be more what you're looking for. Though I really have no clue because I've never reallly looked into it - just saw that article and thought it may be of use to you if you hadn't seen it already. > Everything that follows assumes that forrest 0.7 is in use. > > I have a very lengthy XML file that is validated to a DTD. This file is = to be the source for a forrest site. It appeals to me to let forrest handl= e all the presentation issues as this will leave me free to focus on the XM= L data thus freeing me from the drudgery of building, scripting, and tweaki= ng a web ui (or it will if I ever figure this out). I want to be able to u= pdate xindice as needed and not have to tinker with the rest of the site. > > The XML file is about 1.7 MB in size. Reading through the Xindice site, = I have concluded that it is best to break this file up into smaller chunks = before adding it to the xmldb. > > Next, I'm using cocoon 2.1.8 which has xindice bundled with it. I haven'= t sorted out how to add my XML documents to the bundled xindice. Using xin= dice as a stand-alone, I simply do startup.bat in $XINDICE_HOME and use the= command line to add my documents. At the moment, I'm confused about how t= o "start" the xindice bundle within cocoon as I can't find the startup.bat = file. Anyway, that's minor, I'll figure it out eventually though if anyone= wants to reply to that I'm most grateful. > > The rest of the plan is to cut and paste the xmldb transformer: > > > > org.apache.xindice.client.xmldb.DatabaseImpl > xmldb:xindice://localhost:8888/db > > ... > > > from cocoon's sitemap.xmap into my forrest projects $project_home/main/w= ebapp/sitemap.xmap. So now forrest should have a connection to xindice. T= he wiki has an example called populate.xml but the link is broken (maybe so= meone on the list knows the correct location). > > Here is what I think I need to finish this up (purely conjecture): > > 1. A pipeline to handle page requests by turning the into XPATH queries,= sending the query to the xmldb, and returning the requested XML document. > > 2. A stylesheet to transform the returned document into document-v13 for= mat. > > This raises the following question: > > Does forrest use whatever version of cocoon my system variable $COCOON_HO= ME is set to or is it bundled with its own cocoon build? How can I find ou= t which version of cocoon forrest is using? $FORREST_HOME\lib\core\cocoon-XYZ-rABC.jar will give you which Cocoon we're= on. > Once we get this sorted out, I intend to post the solution on the wiki bu= t there is still a way to go here. Anyway, thanks to everyone who has repl= ied so far and anyone who chimes in as this thread works itself out. > > Cheers, > > Chris > > -----Original Message----- > From: J.D. Williams [mailto:jdwilliams@austin.rr.com] > Sent: Wednesday, March 15, 2006 4:46 PM > To: user@forrest.apache.org > Subject: Re: Cocoon sitemaps and Forrest sitemaps > > Sounds like we're on our own, Chris. > > :) > > Joe > > Thorsten Scherler wrote: > > > El mi=E9, 15-03-2006 a las 13:40 -0500, Woods, Christopher escribi=F3: > > > >>Hi Folks, > >> > >>I'm trying to sort out where Forrest ends and Cocoon begins with > >>regard to sitemaps. As best I can tell, the only two sets of sitemaps > >>that are used by Forrest are the local-project sitemaps (these are > >>processed > >>first) and the forrest-home sitemaps (these are processed only if > >>local-project does not handle the request). > > > > > > Then there are the sitemaps provided by the plugins and we talking > > about "sets". ;) There are million of *.xmaps in forrest (at least it > > seems like it). ;) > > > > > >> Am I correct in assuming > >>that sitemaps in cocoon-home are only used for instances not processed > >>by the forrest-home sitemaps? > > > > > > I do not understand the question. > > > > If you tell forrest to use them then forrest will use them but if you > > place a *.xmap in cocoon forrest will not read it out of the box. > > > > > >> Thanks very much. > >> > >>Chris > > > > > > http://forrest.apache.org/docs_0_70/project-sitemap.html > > >