> From: Laurent CAPRANI [mailto:[EMAIL PROTECTED]] > > I need to provide a request parameter to a transformation. > Ex: http://.../application/page.xml?my-parameter=value > > I tried to send a parameter to this transformer this way: > > <map:match pattern="application/**.xml"> > <map:generate src="application/{1}.xml"/> > <map:transform type="my-transform"> > <map:parameter name="my-parameter" value="{my-parameter}"/> > </map:transform> > <map:transform src="application/xmltohtml.xsl"/> > <map:serialize/> > </map:match> > This does not work. The request parameter "my-parameter" is not present as a > sitemap variable.
Of course. There is no component in your snippet to create this parameter. > What is the correct way to do this ? > Using another matcher? inserting an action? Matcher or action. Check (IIRC) RequestParameterMatcher class (it may be absent in the Cocoon release, use CVS to get it). Vadim --------------------------------------------------------------------- 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]>