forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r561524 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap
Date Tue, 31 Jul 2007 20:57:30 GMT
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>



Mime
View raw message