Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 49313 invoked by uid 500); 7 Feb 2002 07:44:25 -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 49301 invoked from network); 7 Feb 2002 07:44:25 -0000 From: "Carsten Ziegeler" To: Subject: RE: EncodeURLTransformer to scratchpad Date: Thu, 7 Feb 2002 08:46:15 +0100 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) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <3C618ED6.5030003@a1.net> Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 07.02.2002 08:44:28, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 07.02.2002 08:44:29, Serialize complete at 07.02.2002 08:44:29 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Bernhard, nice transformer! Thanks for this. But two minor things with your check-in: a) Please add the licence header next time to the source when you check-in b) Your transformer had references to the HttpServletResponse etc. classes. Cocoon offers the environment abstraction with the Response, Request and Session class. Please use these instead. I changed these two points already. Thanks Carsten > -----Original Message----- > From: Bernhard Huber [mailto:berni_huber@a1.net] > Sent: Wednesday, February 06, 2002 9:15 PM > To: cocoon-dev@xml.apache.org > Subject: EncodeURLTransformer to scratchpad > > > Hi, team > > i'd like to submit a EncodeURLTransformer into scratchpad, > is this okay? > I think this might help handling writting webapps using http sessions. > > The encodeURL transformer emits encoded URLs. > This transformer applies encodeURL method to URLs. > You may want to use this transform to avoid doing the manually > encodeURL() call. > > Usually this transformer is appended as last transformer before > the serialization process. In this case it is possible to encode > URLs introduced in the generator, and xslt transformer phase. > > You can specify which attributes hold URL values in order to restrict > URL rewriting to specific attributes only. In the current implementation > you specify include, and exclude patterns as regular expressions, > concatting > element-name + "/@" + attribute-name. > > Usage in a sitemap: > > ... > > ... > > src="org.apache.cocoon.optional.transformation.EncodeURLTransformer"> > img/@src > .*/@href|.*/@src|.*/@action > > ... > > > ... > > ... > > bye bernhard > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org