cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: [C2] Allowing actions to select transformer type
Date Mon, 30 Apr 2001 17:06:33 GMT


Donald Ball a écrit :
> 
> 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
> 
Aren't there any cache issues if the actual transformer used is not
predefined in the sitemap ?

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

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


Mime
View raw message