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.
<[EMAIL PROTECTED]> Friedrich Nietzsche
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]