You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2005/10/24 10:42:59 UTC

svn commit: r327995 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/themer.xmap

Author: thorsten
Date: Mon Oct 24 01:42:41 2005
New Revision: 327995

URL: http://svn.apache.org/viewcvs?rev=327995&view=rev
Log:
Added support for project contract listing. some formating changes.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/themer.xmap

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/themer.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/themer.xmap?rev=327995&r1=327994&r2=327995&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/themer.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/themer.xmap Mon Oct 24 01:42:41 2005
@@ -33,15 +33,15 @@
 
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   <map:components>
-    <map:pipes default="caching"/>
-    <map:generators default="file"/>
-    <map:transformers default="xslt"/>
-    <map:serializers default="xml"/>
+    <map:pipes default="caching" />
+    <map:generators default="file" />
+    <map:transformers default="xslt" />
+    <map:serializers default="xml" />
   </map:components>
   <map:pipelines>
-      <!-- prepare the xsl:templates of the requested contract.
-        {1} format to deliver
-        {2} contract name  -->
+    <!-- prepare the xsl:templates of the requested contract.
+      {1} format to deliver
+      {2} contract name  -->
     <map:pipeline>
       <map:match pattern="prepare.contract.*.**">
         <map:generate src="{lm:resolve.contract.{1}.{2}}" />
@@ -54,17 +54,16 @@
         <map:serialize />
       </map:match>
     </map:pipeline>
-      <!--
-        Get the forrest:properties of the requested contract. 
-        This will determine which templates (head, body) we have to call later on
-        {1} format to deliver
-        {2} contract name
-      -->
+    <!--
+      Get the forrest:properties of the requested contract. 
+      This will determine which templates (head, body) we have to call later on
+      {1} format to deliver
+      {2} contract name
+    -->
     <map:pipeline>
       <map:match pattern="prepare.contract-property.*.**">
         <map:generate src="{lm:resolve.contract.{1}.{2}}" />
-        <map:transform
-          src="{lm:contract-property.xsl}">
+        <map:transform src="{lm:contract-property.xsl}">
           <map:parameter name="format" value="{1}" />
         </map:transform>
         <map:serialize />
@@ -74,32 +73,64 @@
       list the default contracts-->
     <map:pipeline>
       <map:match pattern="ls.contracts">
-        <map:generate src="{lm:themer.contracts.dir}" type="xpathdirectory">
+        <map:generate src="{lm:themer.contracts.dir}"
+          type="xpathdirectory">
           <map:parameter name="xpath" value="/*" />
           <map:parameter name="xmlFiles" value="\.ft$" />
           <map:parameter name="exclude" value="[\w]*.svn" />
-          <map:parameter name="depth" value="2" />
+          <map:parameter name="depth" value="3" />
         </map:generate>
-        <map:transform src="{lm:ls.contracts.xsl}"/>
+        <map:transform src="{lm:ls.contracts.xsl}" />
+        <map:serialize />
+      </map:match>
+      <map:match pattern="ls.contracts.project">
+        <map:generate src="{lm:themer.contracts.project.dir}"
+          type="xpathdirectory">
+          <map:parameter name="xpath" value="/*" />
+          <map:parameter name="xmlFiles" value="\.ft$" />
+          <map:parameter name="exclude" value="[\w]*.svn" />
+          <map:parameter name="depth" value="3" />
+        </map:generate>
+        <map:transform src="{lm:ls.contracts.xsl}" />
         <map:serialize />
       </map:match>
       <map:match pattern="ls.contracts.xml">
-        <map:generate src="{lm:ls.contracts}"/>
-        <map:transform src="{lm:ls.contracts-to-document.xsl}"/>
+        <map:generate src="{lm:ls.contracts}" />
+        <map:transform src="{lm:ls.contracts-to-document.xsl}" />
+        <map:serialize />
+      </map:match>
+      <map:match pattern="ls.contracts.project.xml">
+        <map:generate src="{lm:ls.contracts.project}" />
+        <map:transform src="{lm:ls.contracts-to-document.xsl}" />
         <map:serialize />
       </map:match>
       <map:match pattern="ls.contract-*.xml">
-        <map:generate src="{lm:ls.contracts}"/>
+        <map:generate src="{lm:ls.contracts}" />
         <map:transform src="{lm:ls.contracts-to-document.xsl}">
-          <map:parameter name="requestedContract" value="{1}"/>
+          <map:parameter name="requestedContract" value="{1}" />
+        </map:transform>
+        <map:serialize />
+      </map:match>
+            <map:match pattern="ls.contract-*.project.xml">
+        <map:generate src="{lm:ls.contracts.project}" />
+        <map:transform src="{lm:ls.contracts-to-document.xsl}">
+          <map:parameter name="requestedContract" value="{1}" />
         </map:transform>
         <map:serialize />
       </map:match>
       <map:match pattern="less.contract-*.xml">
-        <map:generate src="{lm:ls.contracts}"/>
+        <map:generate src="{lm:ls.contracts}" />
+        <map:transform src="{lm:ls.contracts-to-document.xsl}">
+          <map:parameter name="requestedContract" value="{1}" />
+          <map:parameter name="less" value="true" />
+        </map:transform>
+        <map:serialize />
+      </map:match>
+            <map:match pattern="less.contract-*.xml">
+        <map:generate src="{lm:ls.contracts.project}" />
         <map:transform src="{lm:ls.contracts-to-document.xsl}">
-          <map:parameter name="requestedContract" value="{1}"/>
-          <map:parameter name="less" value="true"/>
+          <map:parameter name="requestedContract" value="{1}" />
+          <map:parameter name="less" value="true" />
         </map:transform>
         <map:serialize />
       </map:match>