Author: thorsten
Date: Wed Aug  2 14:20:23 2006
New Revision: 428153

URL: http://svn.apache.org/viewvc?rev=428153&view=rev
Log:
Adding svn support specific properties to the d.p.p.x. Further activated this 
new properties in the plugin.

Modified:
    
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/default.plugin.properties.xml
    
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/svn-log.xsl
    
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/svnHelper.xmap

Modified: 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/default.plugin.properties.xml
URL: 
http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/default.plugin.properties.xml?rev=428153&r1=428152&r2=428153&view=diff
==============================================================================
--- 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/default.plugin.properties.xml
 (original)
+++ 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/default.plugin.properties.xml
 Wed Aug  2 14:20:23 2006
@@ -28,4 +28,6 @@
   <!-- Indicate if the contributors list should be included. Values are true
        or false. -->
   <property name="projectInfo.changes.includeContributorList" value="true"/>
+  <property name="projectInfo.svn.ext" value=".svn.xml"/>
+  <property name="projectInfo.svn.path-prefix" 
value="src/documentation/content/svn-log/myProject-"/>
 </properties>

Modified: 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/svn-log.xsl
URL: 
http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/svn-log.xsl?rev=428153&r1=428152&r2=428153&view=diff
==============================================================================
--- 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/svn-log.xsl
 (original)
+++ 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/svn-log.xsl
 Wed Aug  2 14:20:23 2006
@@ -18,11 +18,13 @@
 <!-- $Id$ -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
   <xsl:param name="url"/>
-  <xsl:param name="test"/>
-  <!--test: <xsl:value-of select="$test"/>-->
+  <xsl:param name="ext"/>
+  <xsl:param name="path-prefix"/>
   <xsl:template match="/">
-    <xsl:apply-templates/>
+    <shell>
+      <xsl:apply-templates/>
+    </shell>
   </xsl:template>
-  <xsl:template match="changes">svn log -r <xsl:value-of 
select="revision/@first"/>:<xsl:value-of select="revision/@last"/> --xml -v 
<xsl:value-of select="$url"/> > <xsl:value-of select="@release"/>.svn.xml
+  <xsl:template match="changes">svn log -r <xsl:value-of 
select="revision/@first"/>:<xsl:value-of select="revision/@last"/> --xml -v 
<xsl:value-of select="$url"/> > <xsl:value-of 
select="$path-prefix"/><xsl:value-of select="@release"/><xsl:value-of 
select="$ext"/>
 </xsl:template>
 </xsl:stylesheet>

Modified: 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/svnHelper.xmap
URL: 
http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/svnHelper.xmap?rev=428153&r1=428152&r2=428153&view=diff
==============================================================================
--- 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/svnHelper.xmap
 (original)
+++ 
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/svnHelper.xmap
 Wed Aug  2 14:20:23 2006
@@ -52,13 +52,10 @@
         <map:generate src="cocoon:/{1}.svn-revision.xml"/>
         <map:transform src="resources/stylesheets/svn-log.xsl">
           <map:parameter value="{lm:project.svn.url}" name="url"/>
-          <!-- 
-            If I use the following then I get:
-            Unable to get attribute value for projectInfo.svn.ext
-            -->
-          <!--<map:parameter value="{project:projectInfo.svn.ext}" 
name="test"/>-->
+          <map:parameter value="{project:projectInfo.svn.ext}" name="ext"/>
+          <map:parameter value="{project:projectInfo.svn.path-prefix}" 
name="path-prefix"/>
         </map:transform>
-        <map:serialize type="text"/>
+        <map:serialize type="xml"/>
       </map:match>
     </map:pipeline>
   </map:pipelines>