Hi Chris, Look at request selector usage in cocoon's default sitemap. Also, have a look at the very good tutorial http://www.cocooncenter.de/cc/documents/resources/request-params/requestselector.html
Best regards Roman "Shaw, Chris" wrote: > Hi > > I have the following scenario... > > The user choses, on an HTML Form, for which format they want the output > (e.g. PDF, XML, HTML, etc)...and the parameter called 'format' gets set as > to whatever they chose > ...eg format=pdf. > > A generator is called which executes a database query and returns all the > data as XML... > > The problem? > I want to use a different transformer depending on what the 'format' > parameter was set to.... > > I searched the docs and mailing archives already....but couldn't find the > answer.... > > This is what I have so far.....but the variable 'format' seems to get lost > along the way. > <map:pipeline> > <map:match pattern="*-find"> > <map:generate type="find-action"/> > <map:transform type="xslt" src="stylesheets/{format}.xsl"/> > <map:serialize/> > </map:match> > </map:pipeline> > > I did also discover from the docs the following tag: > <map:parameter name="use-request-parameters" value="true"/> > but this states that the parameters are "available in the XSLT stylesheet" - > and I need it before then (also I couldn't get it to work in the XSLT > stylesheet anyway). > > Can someone point me in the right direction to overcoming this... > > Many TIA > > Chris > -=-=-= > > ~~~~~~~~~~~~~~~~~~~~ > Chris Shaw > > European Central Bank > > DG Information Systems > > * [EMAIL PROTECTED] > ~~~~~~~~~~~~~~~~~~~~ > > Any e-mail message from the European Central Bank (ECB) is sent in good faith but >shall neither be binding nor construed as constituting a commitment by the ECB except >where provided for in a written agreement. > This e-mail is intended only for the use of the recipient(s) named above. Any >unauthorised disclosure, use or dissemination, either in whole or in part, is >prohibited. > If you have received this e-mail in error, please notify the sender immediately via >e-mail and delete this e-mail from your system. > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>