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 2007/04/13 10:24:11 UTC

svn commit: r528387 - /lenya/trunk/src/modules/news/sitemap.xmap

Author: andreas
Date: Fri Apr 13 01:24:10 2007
New Revision: 528387

URL: http://svn.apache.org/viewvc?view=rev&rev=528387
Log:
Added workaround for https://issues.apache.org/jira/browse/COCOON-889 (CInclude, NPEs in AbstractEnvironment.release())

Modified:
    lenya/trunk/src/modules/news/sitemap.xmap

Modified: lenya/trunk/src/modules/news/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/news/sitemap.xmap?view=diff&rev=528387&r1=528386&r2=528387
==============================================================================
--- lenya/trunk/src/modules/news/sitemap.xmap (original)
+++ lenya/trunk/src/modules/news/sitemap.xmap Fri Apr 13 01:24:10 2007
@@ -46,7 +46,19 @@
       </map:match>
       
       <map:match pattern="*.xml/*/*/*/*">
+        
+        <!-- This is a workaround (see below). -->
+        <map:generate src="lenya-document:{4},pub={2},area={3},lang={5}{link:rev}"/>
+        <map:transform src="fallback://lenya/modules/collection/xslt/prepareCinclude.xsl">
+          <map:parameter name="uuid" value="{4}"/>
+          <map:parameter name="language" value="{5}"/>
+        </map:transform>
+        <map:transform type="cinclude"/>
+        
+        <!-- This would be a nicer way, but causes NPES in AbstractEnvironment.release(AbstractEnvironment.java:561)
         <map:generate src="{resource-type:collection:format-collection}/{2}/{3}/{4}/{5}"/>
+        -->
+        
         <map:transform src="fallback://lenya/modules/collection/xslt/collection2cinclude.xsl">
           <map:parameter name="uuid" value="{4}"/>
           <map:parameter name="language" value="{5}"/>



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