cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2] Allowing actions to select transformer type
Date Mon, 30 Apr 2001 22:39:53 GMT


On Mon, 30 Apr 2001, Donald Ball wrote:

> 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?

Yes, I think it is. Read my response to this mail.

Giacomo


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


Mime
View raw message