Read some clarifications below, Regards, Vadim
> From: Chris Newland [mailto:[EMAIL PROTECTED]] > > Hi Raul, > > When you use wildcard parameters with actions, the parameters are treated > like they are on a stack so that for each action you execute, Read: ...for each action, selector, matcher you execute... > your original parameters are pushed down the stack and parameters from the executed action/selector/matcher are appended to this stack. >. You must then specify which > level of the stack you want to retrieve the parameters from using directory-like (or XPath-like) path, where '../' expression allows to access parameters on one level down from the top of the stack. > Your parameter is inside 1 level of action so to access it you need to do > the following: > > <map:pipeline> > <map:match pattern="*-store"> > <map:act type="web-action"> > <map:generate src="docs/{../1}-input.xml"/> > <map:transform type="xslt" src="stylesheets/xml2html.xsl"/> > <map:serialize type="html"/> > </map:act> > </map:match> > </map:pipeline> > > If it was inside 2 nested actions you would access it like {../../1} etc. > > Hope this helps, > > Regards, > > Chris > > > -----Original Message----- > > From: Fiedler, Raul [mailto:[EMAIL PROTECTED]] > > Sent: 25 February 2002 13:39 > > To: '[EMAIL PROTECTED]' > > Cc: Shaw, Chris > > Subject: What is happening to {1} in this case? > > > > > > What is happening to {1} in this case? > > > > I have a form(s) called: > > xxxxx-input.xml > > which has an action sending data to the URI: > > xxxxx-store > > > > When it is successful I want it to re-direct back to: > > xxxxxx-input.xml > > > > But what is happening instead is that Cocoon is trying to re-direct to: > > xxxxxx-store > > which is wrong (and it also throws a 404 page not found error). > > > > What is happening to {1} in this case? and why is the rest, ie -input.xml, > > being ignored in my generate tag???? > > > > <map:pipelines> > > <map:pipeline> > > <map:match pattern="*-store"> > > <map:act type="web-action"> > > <map:generate src="docs/{1}-input.xml"/> > > <map:transform type="xslt" > > src="stylesheets/xml2html.xsl"/> > > <map:serialize type="html"/> > > </map:act> > > </map:match> > > </map:pipeline> > > <map:pipeline> > > <map:match pattern="*.xml"> > > <map:generate type="file" src="docs/{1}.xml"/> > > <map:transform type="xslt" src="stylesheets/xml2html.xsl"/> > > <map:serialize/> > > </map:match> > > </map:pipeline> > > </map:pipelines> > > > > > Raul Fiedler > > > European Central Bank > > > DG Information Systems - Business Development > > > * +49 (0) 69 1344 6870 > > > * [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]>