You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antonio Gallardo <ag...@agsoftware.dnsalias.com> on 2003/12/06 21:53:57 UTC

[SOLUTION] - [i18n Transformer] default-catalogue-id attribute does not work

see below....

Antonio Gallardo dijo:
> Hi:
>
> I am trying to switch to another i18n catalogue. The tranformer is defined
> as:
>
> <map:transformer name="i18n" logger="sitemap.transformer.i18n"
>    pool-grow="4" pool-max="32" pool-min="8"
>    src="org.apache.cocoon.transformation.I18nTransformer">
>     <catalogues default="woody">
>       <catalogue id="woody" name="WoodyMessages"
>                  location="context://translations"/>
>       <catalogue id="mensajes" name="messages"
>                  location="context://translations"/>
>   </catalogues>
>   <cache-at-startup>false</cache-at-startup>
> </map:transformer>
>
> Note the default is the woody catalogue, but in a resource I tried to use
> the second catalogue without success:
>
> <map:resources>
>     <map:resource name="normal">
>         <map:transform type="i18n" default-catalogue-id="messages"/>
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This line is bad, correct syntax is:

        <map:transform type="i18n">
            <map:parameter name="default-catalogue-id" value="messages"/>
        </map:transform>

>         <map:transform src="stylesheets/doc2html.xslt"/>
>         <map:transform type="xinclude"/>
>         <map:transform type="encodeURL"/>
>     </map:resource>
> </map:resources>


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