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 2007/08/18 22:44:40 UTC

svn commit: r567327 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl

Author: rgardler
Date: Sat Aug 18 13:44:39 2007
New Revision: 567327

URL: http://svn.apache.org/viewvc?view=rev&rev=567327
Log:
- fix typo in download page match
- handle CVS repositories

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl?view=diff&rev=567327&r1=567326&r2=567327
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl Sat Aug 18 13:44:39 2007
@@ -313,9 +313,11 @@
     </section>
   </xsl:template>
   <xsl:template name="project-scm">
-    <div class="content">
+      <p>
+        Access to the source code:
+      </p>
       <xsl:choose>
-        <xsl:when test="doap:repository">
+        <xsl:when test="doap:repository/doap:SVNRepository">
           <xsl:for-each select="doap:repository/doap:SVNRepository">
             <table>
               <tr>
@@ -333,13 +335,31 @@
             </table>
           </xsl:for-each>
         </xsl:when>
+        <xsl:when test="doap:repository/doap:CVSRepository">
+          <xsl:for-each select="doap:repository/doap:CVSRepository">
+            <table>
+              <tr>
+                <td class="left">Browse</td>
+                <td class="right">
+                  <xsl:apply-templates select="doap:browse/@*" />
+                </td>
+              </tr>
+              <tr>
+                <td class="left">Checkout</td>
+                <td class="right">
+                  <pre>cvs -d<xsl:apply-templates select="doap:anon-root" /> login</pre>
+                  <pre>cvs -z3 -d<xsl:apply-templates select="doap:anon-root" /> co -P <xsl:apply-templates select="doap:module" /></pre>
+                </td>
+              </tr>
+            </table>
+          </xsl:for-each>
+        </xsl:when>
         <xsl:otherwise>
           <p>
             No source control information provided.
           </p>
         </xsl:otherwise>
       </xsl:choose>
-    </div>
   </xsl:template>
   <xsl:template match="doap:release/doap:Version">
     <tr>
@@ -359,7 +379,7 @@
       <title>Source and Releases</title>
       <div class="content">
         <xsl:choose>
-          <xsl:when test="doap:doanload-page">
+          <xsl:when test="doap:download-page">
             <p>
               Releases can be downloaded from
               <xsl:apply-templates select="doap:download-page/@*" />
@@ -395,9 +415,6 @@
           </p>
         </xsl:otherwise>
       </xsl:choose>
-      <p>
-        Access to the source code:
-      </p>
       <xsl:call-template name="project-scm" />
     </section>
   </xsl:template>