forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r209067 - /forrest/branches/locationmap_branch/main/webapp/forrest.xmap
Date Mon, 04 Jul 2005 12:58:33 GMT
Author: rgardler
Date: Mon Jul  4 05:58:32 2005
New Revision: 209067

URL: http://svn.apache.org/viewcvs?rev=209067&view=rev
Log:
Add workaround for case when locationmap does not contain match (see FOR-554)

Modified:
    forrest/branches/locationmap_branch/main/webapp/forrest.xmap

Modified: forrest/branches/locationmap_branch/main/webapp/forrest.xmap
URL: http://svn.apache.org/viewcvs/forrest/branches/locationmap_branch/main/webapp/forrest.xmap?rev=209067&r1=209066&r2=209067&view=diff
==============================================================================
--- forrest/branches/locationmap_branch/main/webapp/forrest.xmap (original)
+++ forrest/branches/locationmap_branch/main/webapp/forrest.xmap Mon Jul  4 05:58:32 2005
@@ -300,8 +300,15 @@
        </map:match>
    
        <map:match pattern="**.xml">
-        <map:generate src="{lm:{0}}" />
-        <map:serialize type="xml"/>
+         <map:select type="exists">
+           <map:when test="{lm:{0}}">
+             <map:generate src="{lm:{0}}"/>
+           </map:when>
+           <map:otherwise>
+             <map:generate src="{project:content.xdocs}{0}"/>
+           </map:otherwise>
+         </map:select>
+         <map:serialize type="xml"/>
        </map:match>
      </map:match>
       



Mime
View raw message