cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: actions parameter levels
Date Tue, 09 Mar 2004 02:05:48 GMT
On 11.02.2004 11:45, Jorg Heymans wrote:

> Below sitemap snippet just seems so counter-intuitive that i thought 
> i'ld share it.
> 
> <map:match pattern="*.*">
>   <map:act type="resource-exists">
>     <map:parameter name="url" value="file://{1}.{2}"/>   
>     <map:aggregate element="aggregation" label="debug1">
>     <map:part src="file://{../1}.{../2}"/>
>     <map:part src="cocoon:/{../1}"/>
>     </map:aggregate>
> ......
> 
> The url action parameter does not need the extra {../} while the ones 
> inside the aggregation do! (note that aggregation can be replaced by 
> plain transformers etc)
> 
> I guess the reason is that the src parameter belongs to the action level 
> itself.

Exactly.

> Admit, this looks strange (and had me going for a few minutes!)

Therefore you can now use flow instead :) We know the 
counter-intuitiveness, but any change on this (they were discussed) 
would break backwards compatibility).

Joerg

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


Mime
View raw message