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 2005/04/22 18:04:30 UTC
svn commit: r164250 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/input.xmap
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>