Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 40952 invoked by uid 500); 19 Oct 2001 11:07:16 -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 40917 invoked from network); 19 Oct 2001 11:07:16 -0000 From: "Carsten Ziegeler" To: Subject: RE: [donation] SectionCutter action Date: Fri, 19 Oct 2001 13:08:20 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20011014225744.27a0fef0.sergio.carvalho@acm.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 19.10.2001 13:07:13, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 19.10.2001 13:07:14, Serialize complete at 19.10.2001 13:07:14 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Sergio, thanks for your contribution! It looks really interesting. If noone else is looking at it in the next days, I would ask you to add these to bugzilla as an enhancement so that it doesn't get lost. Carsten > -----Original Message----- > From: Sergio Carvalho [mailto:sergio.carvalho@acm.org] > Sent: Sunday, October 14, 2001 11:58 PM > To: cocoon-dev@xml.apache.org > Subject: [donation] SectionCutter action > > > Hi, > > I'm sorry for the delay sending the section cutter action I > talked about in a > thread some days ago. I had plans for implementing regexp > matching on the action > before donating it to the Cocoon project, but too many > last-minute tasks pop up > too often :-( I'll try to pick this up next weekend. > > The action is used like this: > 1) Declare the action in the map:actions element of the sitemap. > Define the > different site sections, and the variables there: > src="org.apache.cocoon.acting.SectionCutterAction"> >
> > >
>
> > > >
>
> > 2) Use the action on the sitemap, just like all other actions: > > > ... > > The variables defined with set-var on the section definition will > be available > in the sitemap as {section}, {title}, {dart} for the example above. > > Currently, the pattern matches against the beggining of the URI, with no > wildcards. I plan (need) to have it match regular expressions. > > Cheers, > > -- > Sergio Carvalho > --------------- > sergio.carvalho@acm.org > > If at first you don't succeed, skydiving is not for you > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org