You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jorg Heymans <jh...@domek.be> on 2004/02/11 11:45:33 UTC
actions parameter levels
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.
Admit, this looks strange (and had me going for a few minutes!)
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: actions parameter levels
Posted by Jorg Heymans <jh...@domek.be>.
>
>
> Therefore you can now use flow instead :) We know the
> counter-intuitiveness, but any change on this (they were discussed)
> would break backwards compatibility).
>
I sometimes regret having made the decision to go with the 2.0.x branch
for my project last year in May . Flow is only one of the reasons :)
> Joerg
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: actions parameter levels
Posted by Joerg Heinicke <jo...@gmx.de>.
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