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/07/04 14:58:33 UTC

svn commit: r209067 - /forrest/branches/locationmap_branch/main/webapp/forrest.xmap

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>