You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bàrbara Gelabert <ba...@uib.es> on 2008/02/22 09:46:13 UTC

Problem using multiple catalogues

Hi all,

I'm trying to use multiple catalogues in my sitemap.xmap file but it 
seems that the transformer only recognizes one of them.
Does anybody know how to read from more than one catalogue for a unique 
transformation?

Here you are a code snippet from my sitemap.xmap:

<map:transformer name="i18n" 
src="org.apache.cocoon.transformation.I18nTransformer">
  <catalogues default="catalogue1">
    <catalogue id="catalogue1" name="catalogue1" 
location="resources/i18n" />
    <catalogue id="catalogue2" name="catalogue2" 
location="../../resources/i18n" />
  </catalogues>
  <untranslated-text>Untranslated</untranslated-text>
  <cache-at-startup>false</cache-at-startup>
</map:transformer>

And the match entry:

<map:match pattern="page.html">
  <map:generate src="resources/xml/data.xml" />
  <map:transform src="resources/xsl/stylesheet.xsl" />
  <map:transform type="i18n"><!-- This only reads from catalogue1 -->
    <map:parameter name="locale" value="ca" />
  </map:transform>
  <map:serialize type="html" />
</map:match>


Thanks a lot!
Barbara

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


Re: Problem using multiple catalogues

Posted by Joerg Heinicke <jo...@gmx.de>.
On 22.02.2008 03:46, Bàrbara Gelabert wrote:

> I'm trying to use multiple catalogues in my sitemap.xmap file but it 
> seems that the transformer only recognizes one of them.

Do you really want to have multiple catalogues or multiple locations per 
catalogue? Both is possible.

Joerg

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


RE: Problem using multiple catalogues

Posted by Jasha Joachimsthal <j....@hippo.nl>.
Hi Barbara,

You can use i18n:catalogue="catalogue2" in your i18n:text element.

Jasha 

> -----Original Message-----
> From: Bàrbara Gelabert [mailto:barbara.gelabert@uib.es] 
> Sent: vrijdag 22 februari 2008 9:46
> To: users@cocoon.apache.org
> Subject: Problem using multiple catalogues
> 
> Hi all,
> 
> I'm trying to use multiple catalogues in my sitemap.xmap file 
> but it seems that the transformer only recognizes one of them.
> Does anybody know how to read from more than one catalogue 
> for a unique transformation?
> 
> Here you are a code snippet from my sitemap.xmap:
> 
> <map:transformer name="i18n" 
> src="org.apache.cocoon.transformation.I18nTransformer">
>   <catalogues default="catalogue1">
>     <catalogue id="catalogue1" name="catalogue1" 
> location="resources/i18n" />
>     <catalogue id="catalogue2" name="catalogue2" 
> location="../../resources/i18n" />
>   </catalogues>
>   <untranslated-text>Untranslated</untranslated-text>
>   <cache-at-startup>false</cache-at-startup>
> </map:transformer>
> 
> And the match entry:
> 
> <map:match pattern="page.html">
>   <map:generate src="resources/xml/data.xml" />
>   <map:transform src="resources/xsl/stylesheet.xsl" />
>   <map:transform type="i18n"><!-- This only reads from catalogue1 -->
>     <map:parameter name="locale" value="ca" />
>   </map:transform>
>   <map:serialize type="html" />
> </map:match>
> 
> 
> Thanks a lot!
> Barbara
> 
> ---------------------------------------------------------------------
> 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