forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r216270 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.view/internal.xmap
Date Wed, 13 Jul 2005 21:40:53 GMT
Author: thorsten
Date: Wed Jul 13 14:40:51 2005
New Revision: 216270

URL: http://svn.apache.org/viewcvs?rev=216270&view=rev
Log:
Activated multiple skin facility in views. Now if you use project.view-defaultView=pelt.fv
the views plugin will check whether there is a 'pelt.fv' in the plugin. If not it uses the
default.fv otherwise pelt.fv.

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

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.view/internal.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.view/internal.xmap?rev=216270&r1=216269&r2=216270&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.view/internal.xmap
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.view/internal.xmap
Wed Jul 13 14:40:51 2005
@@ -103,12 +103,24 @@
     <map:match pattern="prepare.view.**">
       <map:generate src="cocoon:/viewLocationmap.xml"/>
       <map:transform src="resources/stylesheets/viewLocationmap2path.xsl"/>
-      <map:transform src="resources/stylesheets/includes-viewLocationmap.xsl">
-        <map:parameter value="{project:defaultView}" name="defaultView"/>
-        <map:parameter value="{1}" name="path"/>
-        <map:parameter value="{project:content.xdocs}" name="root"/>
-        <map:parameter value="resources/views/default.fv" name="viewFallback"/>
-      </map:transform>
+      <map:select type="exists">
+      	<map:when test="resources/views/{project:defaultView}">
+		      <map:transform src="resources/stylesheets/includes-viewLocationmap.xsl">
+		        <map:parameter value="{project:defaultView}" name="defaultView"/>
+		        <map:parameter value="{1}" name="path"/>
+		        <map:parameter value="{project:content.xdocs}" name="root"/>
+		        <map:parameter value="resources/views/{project:defaultView}" name="viewFallback"/>
+		      </map:transform>
+        </map:when>
+        <map:otherwise>
+		      <map:transform src="resources/stylesheets/includes-viewLocationmap.xsl">
+		        <map:parameter value="{project:defaultView}" name="defaultView"/>
+		        <map:parameter value="{1}" name="path"/>
+		        <map:parameter value="{project:content.xdocs}" name="root"/>
+		        <map:parameter value="resources/views/default.fv" name="viewFallback"/>
+		      </map:transform>
+        </map:otherwise>
+      </map:select>
       <map:transform type="xinclude"/>
       <map:transform src="resources/stylesheets/prepare.include.templates.xsl"/>
       <map:transform type="xinclude"/>



Mime
View raw message