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:[EMAIL PROTECTED]]
> Sent: Wednesday, February 06, 2002 9:15 PM
> To: [EMAIL PROTECTED]
> 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:
>   <map:composition>
>   ...
>     <map:transformers>
>     ...
>       <map:transformer type="encodeURL"
>
> src="org.apache.cocoon.optional.transformation.EncodeURLTransformer">
>         <exclude-name>img/@src</exclude-name>
>         <include-name>.*/@href|.*/@src|.*/@action</include-name>
>       </map:transformer>
>   ...
>   <map:pipelines>
>     <map:pipeline>
>       ...
>       <map:transform type="encodeURL"/>
>       ...
>
> bye bernhard
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to