forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r164250 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap
Date Fri, 22 Apr 2005 16:04:30 GMT
Author: rgardler
Date: Fri Apr 22 09:04:28 2005
New Revision: 164250

URL: http://svn.apache.org/viewcvs?rev=164250&view=rev
Log:
if the requested file exists locally then use it

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

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap?rev=164250&r1=164249&r2=164250&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap Fri
Apr 22 09:04:28 2005
@@ -47,11 +47,20 @@
 
 		<map:pipeline>
 			<map:match pattern="**.xml">
-				<map:generate type="request"/>
-				<map:transform src="resources/stylesheets/repoRequest2doc.xsl">
-					<map:parameter name="documentID" value="{1}"/>
-				</map:transform>
-				<map:serialize type="xml" />
+        <map:select type="exists">
+          <map:when test="{project:content.xdocs}{0}">
+            <!-- Do nothing as we want to use the local file -->
+            <!-- FIXME: this requires that this plgin goes last in the processing chain
+                 this goeas against the recomendations for building Forrest Plugins -->
+          </map:when>
+          <map:otherwise>
+            <map:generate type="request"/>
+            <map:transform src="resources/stylesheets/repoRequest2doc.xsl">
+              <map:parameter name="documentID" value="{1}"/>
+            </map:transform>
+            <map:serialize type="xml" />
+          </map:otherwise>
+        </map:select>
 			</map:match>
 		</map:pipeline>
 	</map:pipelines>



Mime
View raw message