cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: EncodeURLTransformer to scratchpad
Date Thu, 07 Feb 2002 00:01:22 GMT
Bernhard Huber wrote:
> 
> 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

+1

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message