You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2007/04/08 21:07:29 UTC

svn commit: r526594 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher: internal.xmap locationmap.xml resources/stylesheets/project-to-text.xsl

Author: thorsten
Date: Sun Apr  8 12:07:28 2007
New Revision: 526594

URL: http://svn.apache.org/viewvc?view=rev&rev=526594
Log:
FOR-808 WORKAROUND
Creating a virtual skinconf from the properties module.
The core depends on a skinconf but the dispatcher not.
See as well FOR-829 where we use this config to generate 
the svg2png logo (group/project)

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/project-to-text.xsl   (with props)
Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap?view=diff&rev=526594&r1=526593&r2=526594
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap Sun Apr  8 12:07:28 2007
@@ -90,6 +90,16 @@
      <map:pipes default="caching"/>
   </map:components>
   <map:pipelines>
+    <!--FOR-808 WORKAROUND
+      Creating a virtual skinconf from the properties module.
+      The core depends on a skinconf but the dispatcher not.
+      See as well FOR-829 where we use this config.-->
+    <map:pipeline>
+      <map:match pattern="skinconf.xml">
+        <map:generate src="cocoon://module.properties.properties" />
+        <map:serialize />
+      </map:match>
+    </map:pipeline>
     <!--
       structurer
       prepares and transforms the requested contracts (themes) and populate them with the content (businessHelper).

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml?view=diff&rev=526594&r1=526593&r2=526594
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml Sun Apr  8 12:07:28 2007
@@ -113,6 +113,10 @@
         </selectors>
     </components>
     <locator>
+      <match pattern="transform.project.text">
+        <location
+          src="{lm:dispatcher.home}/resources/stylesheets/project-to-text.xsl"/>
+      </match>
         <!-- Base location of the project themes-->
         <match pattern="themer.project.dir">
           <location src="{properties:resources}/themes" />

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/project-to-text.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/project-to-text.xsl?view=auto&rev=526594
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/project-to-text.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/project-to-text.xsl Sun Apr  8 12:07:28 2007
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--+
+    | Replace element for the value on the project descriptor 
+    | xmlns:for has to be replaced for the final version
+    +-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:for="http://apache.org/forrest" version="1.0">
+
+  <xsl:import href="lm://transform.xml.copyover.helper"/>
+
+  <xsl:template match="for:*">
+    <xsl:variable name="ln" select="local-name()"/>
+    <xsl:value-of select="//*[@name = $ln]/@value"/>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/project-to-text.xsl
------------------------------------------------------------------------------
    svn:eol-style = native