cocoon-users mailing list archives

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

Hello.

I have some entrance in sitemap:

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

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"/>
</map:match>

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 :)

ar


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


Mime
View raw message