> From: Bernhard Huber [mailto:berni_huber@a1.net]
>
> Hi, team
>
> i'd like to submit a EncodeURLTransformer into scratchpad,
> is this okay?
You can commit whatever you want into scratchpad - that's its purpose!
Just make sure that it compiles Ok ;)
Vadim
> 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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
|