cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Radzki" <>
Subject Sitemap choose statement?
Date Tue, 12 Aug 2003 09:11:01 GMT


I have some entrance in sitemap:

<map:match pattern="specs">
   <map:generate src="xml/specs.xml"/>
   <map:serialize type="xml"/>

I want to serve different xml files, which depends on
{session-attr:locale} variable, but with default value 'pl'. 
I tried:

<map:match pattern="specs">
   <map:generate src="xml/specs_{session-attr:locale}.xml"/>
   <map:serialize type="xml"/>

but if browser is for example from Japan, then I want to serve
xml/specs_pl.xml not .._jp.xml. I have set of 4 acceptable languages.
Anybody knows the solution?

Please help me :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message