You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Hoechstaedter <j....@memocomp.de> on 2008/06/10 13:39:39 UTC

pass wildcard parameters to transformer

Hi everybody,

I have the follwing smapping:

<map:match pattern="test/*">
  ...
</map:match>

Now I want to insert this paranmeter defined by the wildcard in the 
generated xml document. I want to do this by a transformer. All I 
managed is to insert a variable by a url paramter (test?paramName=Value) 
and <use-request-parameters>true</use-request-parameters> for the 
transformer. Can I pass a wildcard variable, too? Thanks everybody in 
advance

Johannes



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


Re: pass wildcard parameters to transformer

Posted by Johannes Hoechstaedter <j....@memocomp.de>.
Thanks a lot.

Joerg Heinicke schrieb:
> On 10.06.2008 07:39, Johannes Hoechstaedter wrote:
>
>> I have the follwing smapping:
>>
>> <map:match pattern="test/*">
>>  ...
>> </map:match>
>>
>> Now I want to insert this paranmeter defined by the wildcard in the 
>> generated xml document. I want to do this by a transformer. All I 
>> managed is to insert a variable by a url paramter 
>> (test?paramName=Value) and 
>> <use-request-parameters>true</use-request-parameters> for the 
>> transformer. Can I pass a wildcard variable, too? Thanks everybody in 
>> advance
>
> You can use <map:parameter name="myParameter" value="{1}"/>.
>
> Due to caching issues we recommend to not use 
> <use-request-parameters>true</use-request-parameters>.
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>

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


Re: pass wildcard parameters to transformer

Posted by Joerg Heinicke <jo...@gmx.de>.
On 10.06.2008 07:39, Johannes Hoechstaedter wrote:

> I have the follwing smapping:
> 
> <map:match pattern="test/*">
>  ...
> </map:match>
> 
> Now I want to insert this paranmeter defined by the wildcard in the 
> generated xml document. I want to do this by a transformer. All I 
> managed is to insert a variable by a url paramter (test?paramName=Value) 
> and <use-request-parameters>true</use-request-parameters> for the 
> transformer. Can I pass a wildcard variable, too? Thanks everybody in 
> advance

You can use <map:parameter name="myParameter" value="{1}"/>.

Due to caching issues we recommend to not use 
<use-request-parameters>true</use-request-parameters>.

Joerg

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