Jeroen Reijn <j.reijn <at> hippo.nl> writes: > Â > perhaps you need to try it with: > > Â > ÂÂ > <TOTAL xmlns:xi="http://www.w3.org/2001/XInclude">ÂÂÂÂ <xi:include href="prem.xml"/>ÂÂÂÂÂÂÂ <xi:fallback/>ÂÂÂÂ </xi:include>ÂÂÂ <xi:include href="${cocoon.parameters.prefix}.xml"/>ÂÂ </TOTAL> No, it's ${cocoon.parameters['prefix']} !
see : http://wiki.apache.org/cocoon/JXTemplateGenerator : 1.2.1. Accessing sitemap parameters Cocoon sitemap parameters are accessed through the parameters object. For example, your sitemap might look like this: <map:generate src="jxtemplate.xml" type="jx"> <map:parameter name="my-param" value="my-value"/> </map:generate To access the value of my-param in your jxtemplate.xml file (using JSTL in this case) your expression would look like this: ${cocoon.parameters['my-param']} But I don't understand this point 1.2 : where can I check that thoses objects (expecially parameters) are well defined ? 1.2. Accessing data from implicitly defined Cocoon objects You have access to some implicitly defined objects (available through both JSTL and XPath): continuation - The current flow script continuation request - The Cocoon current request (org.apache.cocoon.environment.Request) session - The Cocoon session associated with the current request (org.apache.cocoon.environment.Session) context - The Cocoon context associated with the current request (org.apache.cocoon.environment.Context) parameters - A map of parameters passed to the generator in the pipeline (org.apache.avalon.framework.parameters.Parameters) Thanks Chris > > Â > Greetz, > > Â > Jeroen > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
