Great that it works.
About the jx template syntax for getting the parameter:
They are both correct and should both work.
Kind regards,
Jeroen Reijn
-----Oorspronkelijk bericht-----
Van: Sébastien Geindre [mailto:[EMAIL PROTECTED]
Verzonden: wo 11-4-2007 16:42
Aan: [email protected]
CC:
Onderwerp: Re: How to generate xml from request witrh jx generator ??
OK i found !
I use a cocoon based on eXist deployement....
It works when i use a stanard verison 2.1.10
I dont know why.
if you have an idea...
>>
>> 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]
>
>
--
Sébastien Geindre
DPREVI/AERO/DEV
[EMAIL PROTECTED]
05 61 07 84 93
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]