cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamal Bhatt <kbh...@tt.com.au>
Subject Re: Passing values from an XSP back to the sitemap
Date Mon, 17 Dec 2007 07:12:24 GMT
Joerg Heinicke wrote:
> On 17.12.2007 1:31 Uhr, Kamal Bhatt wrote:
>
>>> Can you move your variable into the parameters of a new pipeline?
>>>
>>> <map:match pattern="test-xsp-action">
>>>    <map:act type="xsp-action" src="my-xsp-action.xsp">
>>>       <map:generate 
>>> src="cocoon:/parsexspaction/{my-xsp-action-variable}"/>
>>>       <map:serialize type="xml"/>
>>>     </map:act>
>>> </map:match>
>>>
>>> <map:match pattern="parsexspaction/**">
>>>    <map:generate type="file" src="test2.xml"/>
>>>    <map:transform src="{1}/myxslt.xslt"/>
>>>    <map:serialize type="xml"/>
>>> </map:match>
>>>   
>> How can I aggregate this though?
>
> His solution is indeed a nice work around, similar to passing an 
> additional method parameter:
>
> <map:match pattern="test-xsp-action2">
>   <map:act type="xsp-action" src="my-xsp-action.xsp">
>     <map:aggregate element="test1">
>       <map:part src="cocoon:/test-xsp-action/{my-xsp-action-variable}"/>
>       <map:part src="{testXML}"/>
>     </map:aggregate>
>   </map:act>
>   <map:serialize type="xml"/>
> </map:match>
>
> <map:match pattern="test-xsp-action/*">
>   <map:generate type="file" src="test2.xml"/>
>   <map:transform src="{1}/myxslt.xslt"/>
>   <map:serialize type="xml"/>
> </map:match>
>
>
OK, thanks, that makes more sense to me. Not exactly what I want, but I 
could make it work.

Thanks.

-- 
Kamal Bhatt


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


Mime
View raw message