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 2006/06/10 00:20:10 UTC

svn commit: r413182 - in /forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo: ./ resources/stylesheets/ src/documentation/content/xdocs/

Author: rgardler
Date: Fri Jun  9 15:20:08 2006
New Revision: 413182

URL: http://svn.apache.org/viewvc?rev=413182&view=rev
Log:
add ability to retreive an aggregate of all use case files. We can now break down use cases by project module.

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/directory-to-useCases.xsl   (with props)
Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/locationmap.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/useCase-to-document.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/site.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap?rev=413182&r1=413181&r2=413182&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/input.xmap Fri Jun  9 15:20:08 2006
@@ -17,6 +17,9 @@
 -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   <map:components>
+    <map:generators>
+      <map:generator name="directory"      src="org.apache.cocoon.generation.DirectoryGenerator"/>
+    </map:generators>
     <map:transformers default="xslt">
       <map:transformer name="cinclude" src="org.apache.cocoon.transformation.CIncludeTransformer"/>
     </map:transformers>
@@ -109,6 +112,15 @@
       <!-- =============================================================== -->
       <!-- Use Case Pipelines                                              -->
       <!-- =============================================================== -->
+   
+      <map:match pattern="docs/**/useCases/all.source.xml">
+        <map:generate type="directory" src="{lm:project.useCases.dir}">
+          <map:parameter name="include" value=".*.xml$"/>
+        </map:generate>
+        <map:transform src="{lm:projectInfo.transform.directory.useCases}"/>
+        <map:transform type="cinclude"/>
+        <map:serialize type="xml"/>
+      </map:match>
       
       <map:match pattern="docs/**/useCases/**.source.xml">
         <map:generate type="file" src="{lm:project.useCases.{2}}" />

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/locationmap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/locationmap.xml?rev=413182&r1=413181&r2=413182&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/locationmap.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/locationmap.xml Fri Jun  9 15:20:08 2006
@@ -37,6 +37,10 @@
       <location src="{project:status}" />
     </match>  
     
+    <match pattern="project.useCases.dir">
+      <location src="{project:content}/useCases" />
+    </match>   
+    
     <match pattern="project.useCases.**">
       <location src="{project:content}/useCases/{1}.xml" />
     </match>   

Added: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/directory-to-useCases.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/directory-to-useCases.xsl?rev=413182&view=auto
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/directory-to-useCases.xsl (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/directory-to-useCases.xsl Fri Jun  9 15:20:08 2006
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  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.
+-->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:dir="http://apache.org/cocoon/directory/2.0"
+                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                xmlns:resume="http://xmlresume.sourceforge.net/resume/0.0"
+                xmlns:cinclude="http://apache.org/cocoon/include/1.0">
+                
+  <xsl:template match="dir:directory">
+    <useCaseAggregate>
+      <xsl:apply-templates select="dir:file"/>
+    </useCaseAggregate>
+  </xsl:template>
+  
+  <xsl:template match="dir:file">
+    <xsl:variable name="name" select="substring-before(@name,'.xml')"/>
+    <file>
+      <xsl:attribute name="filename"><xsl:value-of select="$name"/></xsl:attribute>
+      <cinclude:include>
+        <xsl:attribute name="src"><xsl:value-of select="concat('cocoon:/docs/agregate/useCases/',$name, '.source.xml')"/></xsl:attribute>
+      </cinclude:include>
+    </file>
+  </xsl:template>   
+  
+  <xsl:template match="@*|*|text()|processing-instruction()|comment()">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
+    </xsl:copy>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/directory-to-useCases.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/useCase-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/useCase-to-document.xsl?rev=413182&r1=413181&r2=413182&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/useCase-to-document.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/useCase-to-document.xsl Fri Jun  9 15:20:08 2006
@@ -24,10 +24,6 @@
     <xsl:param name="includeStepsSummary">true</xsl:param>
 
  <xsl:template match="/">
-  <xsl:apply-templates select="//useCases"/>
- </xsl:template>
-
- <xsl:template match="useCases">
   <document>
    <header>
     <title>
@@ -42,9 +38,16 @@
     </title>
    </header>
    <body>
-    <xsl:apply-templates select="useCase"/>
+       <xsl:apply-templates select="//useCases"/>
    </body>
   </document>
+ </xsl:template>
+
+ <xsl:template match="useCases">
+   <section>
+     <title><xsl:value-of select="title"/></title>
+     <xsl:apply-templates select="useCase"/>
+   </section>
  </xsl:template>
 
  <xsl:template match="useCase">

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/site.xml?rev=413182&r1=413181&r2=413182&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/site.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/src/documentation/content/xdocs/site.xml Fri Jun  9 15:20:08 2006
@@ -51,10 +51,12 @@
     <user label="User" href="user/useCases/">
       <useCases label="Change Log" href="changeLogFeatures.html"/>
       <useCases label="Use Cases" href="useCaseFeatures.html"/>
+      <all label="All Cases" href="all.html"/>
     </user>
     <developer label="Developer" href="developer/useCases/">
       <useCases label="Change Log" href="changeLogFeatures.html"/>
       <useCases label="Use Cases" href="useCaseFeatures.html"/>
+      <all label="All Cases" href="all.html"/>
       <!-- In development: <featureMatrix label="Feature Matrix" href="featureMatrix/useCases.html"/> -->
     </developer>
   </docs>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml?rev=413182&r1=413181&r2=413182&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml Fri Jun  9 15:20:08 2006
@@ -46,6 +46,14 @@
         <p>This plugin provides various mechanisms for extracting and
         displaying information about one or more projects.</p>
       </notes>
+      <action type="add" context="code" dev="RDG">
+        Allow an aggregation of <a href="/docs/developer/useCases/changeLogFeatures.html">all 
+        use cases</a> in a project.
+      </action>
+      <action type="add" context="code" dev="RDG">
+        Start off a <a href="/docs/developer/useCases/changeLogFeatures.html">use 
+        case document for the changelog features</a> of the plugin.
+      </action>
       <action type="add" context="code" dev="DC">
         Add section to output "Introduction and explanation of symbols".
         Show the unique symbols.