cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: Using jx template generator
Date Mon, 15 May 2006 11:23:31 GMT
Hello Sanket,

do it with a map:parameter:

<map:generate type="jx" src="test/test.xml">
	<map:parameter name="lang" value="en"/>
</map:generate> 

in jx template, now ${cocoon.parameters.lang} refer to you parameter,

Regards Ard 

-- 

Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466
-------------------------------------------------------------
a.schrijvers@hippo.nl / http://www.hippo.nl
-------------------------------------------------------------- 

> 
> Hi,
> 
> I am using jx template generator.
> 
> I am passing a parameter called language from cocoon sitemap. The
> values to this could be en, nl or some thing different.
> 
> <map:generate type="jx" src="test/test.xml">			
> 		<map:parameter
> name="lang" value="en"/>
> </map:generate>
> 
> Based on the lang value I need to create a tag, for example if value
> is en, then I need to create a xml element called
> 
> <h:title-en/>
> 
> and if the lang value is nl, then I need to create a xml 
> element called
> 
> <h:title-nl/>
> 
> I know this is possible to do in the jx file, but doesnot know how to
> do the same
> 
> Sanket.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message