cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <ghow...@crosswalk.com>
Subject RE: Can a Generator set a sitemap param?
Date Wed, 31 Jul 2002 13:34:00 GMT
Correct me if I'm wrong, but I believe the reason for this is that by the
time the generator is executed, the pipeline has already been set up and
can't be altered.  The docs kind of make a big deal of this in a few places.
Part of the reason actions exist is to allow you to make decisions before
pipeline setup.  Does that help explain Vadim's emphatic answers?

Geoff Howard

> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Tuesday, July 30, 2002 9:26 PM
> To: cocoon-dev@xml.apache.org
> Subject: RE: Can a Generator set a sitemap param?
> 
> 
> > From: Justin Fagnani-Bell [mailto:justin@paraliansoftware.com]
> > 
> > Hi List,
> > 
> > Is it possible for a Generator to set sitemap parameters?
> 
> No.
> 
> > I have a
> > Generator that's pulling content from a database and 
> applying a theme,
> > the settings for the themes are also stored in the database. The
> themes
> > are .xsl files and I'd like to be able to set a parameter with the
> name
> > of the file.
> > 
> > It seems like I could alter the Parameters object passed to setup().
> But
> > I'm guessing that either this wouldn't work or would be seriously
> > frowned upon...
> 
> Will have no effect.
> 
> 
> > The reason I don't really want to write an action is that I 
> don't see
> > that it really performs an action. The generator based on 
> it's queries
> > knows which stylesheet to select, I don't really want to perform the
> > query twice.
> 
> PS You can do it once, in action.
> 
> Vadim
>  
> > If writing an action is really the proper way to do it, I can be
> talked
> > into it...
> > 
> > Thanks,
> >    Justin
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

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


Mime
View raw message