You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mathias Wiegard <wi...@ceronic.de> on 2003/07/26 14:42:37 UTC

Getting i18n by action in an sitemap aggregation

Hi,
I have a pipelines which elements are all surrounded by an "locale"-action".
At the first step in the first matcher I'm aggregating two xml files:
<map:aggregate element="site">
  <map:part src="cocoon:/book/index.xml"/>
  <map:part src="cocoon:/body/index.xml"/>
</map:aggregate>

Now, I want to have access to locale to choose the language in which the two
pipelines result. I know that I somehow need to give the locale as paramter
(???????) but how? I tried {locale}, {../locale}, {/locale} but nothing was
successful... :(
One of the matchers as example:
<map:match pattern="body/index.xml">
                    <map:generate src="cocoon:/index.xml"/>
                    <map:transform src="style/blog2content.xsl">
                        <map:parameter name="locale" value="??????????"/>
                    </map:transform>
                    <map:serialize/>
                </map:match>

Thanks in advance!!
Mat
P.S.: After the Aggregation, the i18n transformer is working fine without
any parameters...


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