You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/10/26 11:25:35 UTC
svn commit: r467930 - /lenya/trunk/src/webapp/lenya/i18n.xmap
Author: andreas
Date: Thu Oct 26 02:25:35 2006
New Revision: 467930
URL: http://svn.apache.org/viewvc?view=rev&rev=467930
Log:
Use resource in i18n.xmap to avoid setting a transformer without a generator. This fixes bug 40675.
Modified:
lenya/trunk/src/webapp/lenya/i18n.xmap
Modified: lenya/trunk/src/webapp/lenya/i18n.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/i18n.xmap?view=diff&rev=467930&r1=467929&r2=467930
==============================================================================
--- lenya/trunk/src/webapp/lenya/i18n.xmap (original)
+++ lenya/trunk/src/webapp/lenya/i18n.xmap Thu Oct 26 02:25:35 2006
@@ -25,6 +25,17 @@
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:resources>
+ <map:resource name="serializeCatalogue">
+ <map:transform src="resources/i18n/modules2xinclude.xsl">
+ <map:parameter name="pubId" value="{page-envelope:publication-id}"/>
+ <map:parameter name="catalogue" value="{catalogue}"/>
+ </map:transform>
+ <map:transform type="xinclude"/>
+ <map:serialize/>
+ </map:resource>
+ </map:resources>
+
<map:pipelines>
<map:pipeline type="noncaching">
@@ -49,17 +60,17 @@
<map:parameter name="pub-catalogue-location" value="fallback://lenya/resources/i18n/"/>
<map:parameter name="catalogue-file" value="{1}"/>
</map:generate>
+ <map:call resource="serializeCatalogue">
+ <map:parameter name="catalogue" value="{1}"/>
+ </map:call>
</map:when>
<map:when test="resources/i18n/{1}">
<map:generate src="resources/i18n/{1}"/>
+ <map:call resource="serializeCatalogue">
+ <map:parameter name="catalogue" value="{1}"/>
+ </map:call>
</map:when>
</map:select>
- <map:transform src="resources/i18n/modules2xinclude.xsl">
- <map:parameter name="pubId" value="{page-envelope:publication-id}"/>
- <map:parameter name="catalogue" value="{1}"/>
- </map:transform>
- <map:transform type="xinclude"/>
- <map:serialize/>
</map:match>
</map:pipeline>
</map:pipelines>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org