cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: [C2] Allowing actions to select transformer type
Date Mon, 30 Apr 2001 12:35:42 GMT
On Mon, 30 Apr 2001, Leo Sutic wrote:

> I would like to be able to let the action that runs before the pipeline is
> executed to select the type of transformer to be used:
>   <map:pipeline>
>    <map:match pattern="testpage.html">
>     <map:act type="action">
>      <map:generate type="testgenerator"/>
>      <map:transform type="{transformer}" src="{stylesheet}"/>
>      <map:serialize type="html"/>
>     </map:act>
>    </map:match>
>   </map:pipeline>
> Currently, substitution is only done for the src attribute of
> <map:transform/>, and not for the type attribute, which causes Cocoon to
> crash, as the transformer selector can't find a suitable transformer for the
> hint "{transformer}".
> I'm sure the same effect can be achieved via a selector that tests on
> sitemap parameters, however: Since the substitution model is used for the
> sitemap parameters set by actions everywhere else, it would be more
> consistent to substitute the type attribute as well.

i think i'd be +1 for the change. general question - is there a compelling
reason not to do {} substitution for all sitemap attributes?

- donald

To unsubscribe, e-mail:
For additional commands, email:

View raw message