You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nick Goupinets <ng...@openskysolutions.ca> on 2005/04/25 18:06:37 UTC

i18n and cocoon protocol

Hi everybody,

Just wondering if i18n transformer fully supports Cocoon source 
resolving. In particular if I can use cocoon:/ protocol for fetching 
catalogues? I.e. can I put something like that into the sitemap:


<map:components>
     ...
     <map:transformers default="xslt">
       <map:transformer name="i18n"
            logger="sitemap.transformer.i18n"
            src="org.apache.cocoon.transformation.I18nTransformer">
         <catalogues default="messages">
           <catalogue id="messages" name="messages">
               <location>cocoon:/translations</location>
           </catalogue>
         </catalogues>
         <cache-at-startup>false</cache-at-startup>
       </map:transformer>
</map:components>
...
<map:match pattern="translations/*">
    <map:read src="translations/{1}" mime-type="text/xml"/>
</map:match>
	
<map:act type="locale">
   <map:match pattern="*.xml">
      <map:generate src="{1}.xml"/>
      <map:transform type="i18n">
        <map:parameter name="locale" value="{../locale}"/>
      </map:transform>
      <map:serialize type="xml"/>
      </map:match>
</map:act>


Thank you very much in advance.

Sincerely,

Nick Goupinets.

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