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/11/14 15:07:21 UTC

svn commit: r474795 - /lenya/trunk/src/webapp/lenya/resources/i18n/modules2xinclude.xsl

Author: andreas
Date: Tue Nov 14 06:07:20 2006
New Revision: 474795

URL: http://svn.apache.org/viewvc?view=rev&rev=474795
Log:
Consider template modules when aggregating module i18n catalogues

Modified:
    lenya/trunk/src/webapp/lenya/resources/i18n/modules2xinclude.xsl

Modified: lenya/trunk/src/webapp/lenya/resources/i18n/modules2xinclude.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/resources/i18n/modules2xinclude.xsl?view=diff&rev=474795&r1=474794&r2=474795
==============================================================================
--- lenya/trunk/src/webapp/lenya/resources/i18n/modules2xinclude.xsl (original)
+++ lenya/trunk/src/webapp/lenya/resources/i18n/modules2xinclude.xsl Tue Nov 14 06:07:20 2006
@@ -31,14 +31,16 @@
   <xsl:template match="catalogue">
     <xsl:copy>
       <xsl:copy-of select="@*|node()"/>
-      <xsl:apply-templates select="document(concat('context://lenya/pubs/', $pubId, '/config/publication.xconf'))/publication/module"/>
+      <xsl:apply-templates select="document('aggregate-fallback://config/publication.xconf')/publication/module"/>
     </xsl:copy>
   </xsl:template>  
   
   
   <xsl:template match="module">
-    <xi:include href="cocoon:/i18n-catalogue/module/{@name}/{$catalogue}"
-      xpointer="xpointer(/catalogue/message)"/>
+    <xsl:if test="not(preceding-sibling::module[@name = current()/@name])">
+      <xi:include href="cocoon:/i18n-catalogue/module/{@name}/{$catalogue}"
+        xpointer="xpointer(/catalogue/message)"/>
+    </xsl:if>
   </xsl:template>
   
   



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org