You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2007/07/31 22:57:30 UTC

svn commit: r561524 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap

Author: rgardler
Date: Tue Jul 31 13:57:29 2007
New Revision: 561524

URL: http://svn.apache.org/viewvc?view=rev&rev=561524
Log:
Provide a map from category URIs to category names. It only works in the project detail pages right now, but the framework is there.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap?view=diff&rev=561524&r1=561523&r2=561524
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap Tue Jul 31 13:57:29 2007
@@ -42,14 +42,21 @@
   <map:pipelines>
     <map:pipeline type="navigation">
 <!-- ================================================================ -->
-<!-- Site.xml snippets                                                -->
+<!-- Utility pipelines                                                -->
 <!-- ================================================================ -->
+      <map:match pattern="projectDetails/categoryDefinitions.xml">
+        <map:generate type="file" src="{lm:doap.categoryDefinitions}" />
+        <map:serialize type="xml"/>
+      </map:match>
       <map:match pattern="projectDetails/descriptorIndex.xml">
         <map:generate type="file" src="{properties:content}/locationmap.xml" />
         <map:transform src="{lm:doap.transform.locationmap.descriptorIndex}"/>
         <map:transform type="cinclude"/>
         <map:serialize type="xml"/>
       </map:match>
+<!-- ================================================================ -->
+<!-- Site.xml snippets                                                -->
+<!-- ================================================================ -->
       <map:match pattern="projectDetails/index/by*/siteSnippet.xml">
         <map:generate type="file" src="cocoon:/projectDetails/descriptorIndex.xml" />
         <map:transform src="{lm:doap.transform.descriptorIndex.siteSnippet_by{1}}">
@@ -115,13 +122,19 @@
         <map:generate type="file" src="{lm:doap.descriptor.{1}}" />
         <map:serialize type="xml"/>
       </map:match>
-      <map:match pattern="projectDetails.xml">
-        <map:generate src="cocoon:/projectDetails/source.xml" />
+      <map:match pattern="projectDetails.xml">        
+        <map:aggregate element="projectDetails">
+          <map:part src="cocoon:/projectDetails/categoryDefinitions.xml"/>
+          <map:part src="cocoon:/projectDetails/source.xml"/>
+        </map:aggregate>
         <map:transform src="{lm:doap.transform.doap.document}"/>
         <map:serialize type="xml-document"/>
       </map:match>
-      <map:match pattern="projectDetails/**.xml">
-        <map:generate src="cocoon:/projectDetails/{1}.source.xml" />
+      <map:match pattern="projectDetails/**.xml">        
+        <map:aggregate element="projectDetails">
+          <map:part src="cocoon:/projectDetails/categoryDefinitions.xml"/>
+          <map:part src="cocoon:/projectDetails/{1}.source.xml"/>
+        </map:aggregate>
         <map:transform src="{lm:doap.transform.doap.document}"/>
         <map:serialize type="xml-document"/>
       </map:match>