cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Goupinets <ngoupin...@openskysolutions.ca>
Subject i18n and cocoon protocol
Date Mon, 25 Apr 2005 16:06:37 GMT
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


Mime
View raw message