Here the make-gwprequest-from-param.jx file , very simple too :
<?xml version="1.0" encoding="UTF-8"?>
<GWPRequest xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>
     <cocoon>${cocoon.parameters}</cocoon>
     <myparam>${cocoon.parameters["myparam"]}</myparam>
</GWPRequest>

it is : ${cocoon.parameters.myparam}

Furthermore, if you want an xml presentation of the entire request, there is 
the request generator

Ard

I did try this, but unsuccessful.....

I could use the request generator with an xsl transformation to produce XML flow, but it 's a bit complicated whereas i can use the jx transformer. But it does not work....

For this :
<GWPRequest xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>
    <myparam>${cocoon.parameters["myparam"]}</myparam>
<myparam2>${cocoon.parameters.myparam}</myparam2> </GWPRequest>


Result is still :

<GWPRequest>
<myparam/>
<myparam2/>
</GWPRequest>


Sitemap :
           <map:match pattern="*">
               <map:generate type="jx" src="make-gwprequest-from-param.jx">
                   <map:parameter name="myparam" value="{1}"/>
               </map:generate>
               <map:serialize type="xml"/>
           </map:match>*
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to