Use ../1 instead of 1:
<map:match pattern="*_*/**">
<map:act type="locale">
<!-- This way don't work -->
<map:parameter name="language" value="{../1}"/>
<map:parameter name="country" value="{../2}"/>
<!-- But how to set the locale here without using
the CGI-Parameter ?locale={1}_{2} -->
<map:redirect-to uri="{../3}" uri-prefix="{../1}_{../2}/"/>
</map:act>
</map:match>
-----Ursprüngliche Nachricht-----
Von: Mario Brust [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 11. September 2001 13:03
An: Cocoon-Users (E-Mail)
Betreff: Locale-Action
hi,
I'm using cocoon2b2 and want to use the Locale-Action. But I did not found
any way to extract the language out of the uri.
I want to have a uri like
http://bla.bla/cocoon/bla/sitemaproot/de_DE/site.html.
If I extract the locale I don't know what to do with.
<map:match pattern="*_*/**">
<map:act type="locale">
<!-- This way don't work -->
<map:parameter name="language" value="{1}"/>
<map:parameter name="country" value="{2}"/>
<!-- But how to set the locale here without using
the CGI-Parameter ?locale={1}_{2} -->
<map:redirect-to uri="{3}" uri-prefix="{1}_{2}/"/>
</map:act>
</map:match>
thx in advance
Mario Brust
---
System Development
VIRBUS AG
ICQ 24139151
[EMAIL PROTECTED]
www.virbus.de
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>