cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Reijn" <j.re...@hippo.nl>
Subject RE: How to generate xml from request witrh jx generator ??
Date Wed, 11 Apr 2007 14:45:57 GMT
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:sebastien.geindre@meteo.fr] 
	Verzonden: wo 11-4-2007 16:42 
	Aan: users@cocoon.apache.org 
	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: users-unsubscribe@cocoon.apache.org
	> For additional commands, e-mail: users-help@cocoon.apache.org
	>
	>
	
	
	--
	S├ębastien Geindre
	DPREVI/AERO/DEV
	sebastien.geindre@meteo.fr
	05 61 07 84 93
	
	
	
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
	For additional commands, e-mail: users-help@cocoon.apache.org
	
	

Mime
View raw message