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.

What is the correct way to do this ?
Using another matcher? inserting an action?

-- Laurent CAPRANI
   Montréal



---------------------------------------------------------------------
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]>

Reply via email to