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 2005/10/25 00:33:03 UTC

svn commit: r328175 - /forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/doap-to-html.xsl

Author: rgardler
Date: Mon Oct 24 15:32:56 2005
New Revision: 328175

URL: http://svn.apache.org/viewcvs?rev=328175&view=rev
Log:
synchronise with site-dev

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

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/doap-to-html.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/doap-to-html.xsl?rev=328175&r1=328174&r2=328175&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/doap-to-html.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/doap-to-html.xsl Mon Oct 24 15:32:56 2005
@@ -1,26 +1,30 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version = "1.0" 
-                xmlns:atom="http://www.w3.org/2005/Atom"
+<xsl:stylesheet version = "1.0"
+                xmlns:atom="http://www.w3.org/2005/atom"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
                 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
                 xmlns:doap="http://usefulinc.com/ns/doap#"
                 xmlns:asfext="http://projects.apache.org/ns/asfext#"
                 >
-                
+
   <xsl:param name="includePageHeader">true</xsl:param>
 
   <xsl:output method="html" 
               doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
               doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
               indent="yes" />
-  
+
+  <xsl:template match="/">
+    <xsl:apply-templates select="rdf:RDF|atom:feed" />
+  </xsl:template>
+
   <xsl:template match="rdf:RDF">
-    <xsl:apply-templates select="doap:Project"/>
+    <xsl:apply-templates select="doap:Project" />
   </xsl:template>
-  
+
   <xsl:template match="atom:feed">
-    <xsl:apply-templates select="atom:entry/atom:content/doap:Project"/>
+    <xsl:apply-templates select="atom:entry/atom:content/doap:Project" />
   </xsl:template>
 
   <xsl:template match="doap:Project">
@@ -35,23 +39,23 @@
   </xsl:template>
 
   <xsl:template name="header">
-      <head>
+    <head>
       <link rel="stylesheet" type="text/css" href="../html/projects.css" />
-        <title>Information about <xsl:value-of select="doap:name"/></title>
-      </head>
+      <title>Information about <xsl:value-of select="doap:name"/></title>
+    </head>
   </xsl:template>
-  
-  <xsl:template name="body">    
+
+  <xsl:template name="body">
       <body>
         <table width="100%" border="0" cellspacing="0">
           <xsl:if test="includePageHeader = 'true'">
-            <xsl:call-template name="page-header" />
+          <xsl:call-template name="page-header" />
           </xsl:if>
           <xsl:call-template name="project-details" />
         </table>
       </body>
   </xsl:template>
-  
+
   <xsl:template name="page-header">
     <tr>
       <td>
@@ -128,25 +132,25 @@
     <div class="header">
       <h1><xsl:value-of  select="doap:name" /></h1>
     </div>
-      <div class="description">
-        <p>
-          <xsl:value-of select="doap:description"/>
-        </p>
+    <div class="description">
+      <p>
+        <xsl:value-of select="doap:description"/>
+      </p>
       <xsl:if test="doap:homepage">
       <p>
         For more information visit 
         <xsl:apply-templates select="doap:homepage/@*" />
       </p>
       </xsl:if>
-      </div>
-   </xsl:template>
-   
-   <xsl:template name="project-summary">
+    </div>
+  </xsl:template>
+
+  <xsl:template name="project-summary">
     <xsl:call-template name="section-header">
       <xsl:with-param name="title" select="'Summary'" />
     </xsl:call-template>
 
-      <div class="content">
+    <div class="content">
       <table>
        <tr>
          <td class="left">Programming Languages</td>
@@ -160,7 +164,7 @@
            <xsl:apply-templates select="doap:category" />
          </td>
        </tr>  
-          <tr>
+       <tr>
          <td class="left">Project Management Committee</td>
          <td class="right">
            <xsl:apply-templates select="asfext:pmc" />
@@ -174,10 +178,10 @@
        </tr>
        <tr>
          <td class="left">Bug/Issue Tracker</td>
-            <td class="right">
+         <td class="right">
            <xsl:apply-templates select="doap:bug-database/@*" />
-            </td>
-          </tr>
+         </td>
+       </tr>
        <xsl:if test="doap:wiki">
          <tr>
            <td class="left">Wiki</td>
@@ -186,9 +190,9 @@
            </td>
          </tr>
        </xsl:if>
-          <tr>
+       <tr>
          <td class="left">License</td>
-            <td class="right">
+         <td class="right">
            <xsl:choose>
              <xsl:when test="doap:license/@rdf:resource = 'http://usefulinc.com/doap/licenses/asl20'">
                <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License Version 2.0</a>
@@ -197,18 +201,18 @@
                <xsl:apply-templates select="doap:license/@*" />
              </xsl:otherwise>
            </xsl:choose>
-            </td>
-          </tr>
-          <tr>
+         </td>
+       </tr>              
+       <tr>
          <td class="left">Project Website</td>
-            <td class="right">
+         <td class="right">
                <xsl:apply-templates select="doap:homepage/@*" />
-            </td>
-          </tr>
-       </table>
-     </div>
-   </xsl:template>
-   
+         </td>
+       </tr>
+         </table>
+       </div>
+  </xsl:template>
+
   <xsl:template match="asfext:mailing-list/asfext:Mail-list">
   <tr><td class="title"><xsl:apply-templates select="doap:name"/></td>
     <td class="right"><xsl:value-of select="doap:description"/></td>
@@ -240,32 +244,32 @@
 
   <xsl:template name="project-scm">
 
-        <div class="content">
-          <xsl:choose>
+    <div class="content">
+      <xsl:choose>
         <xsl:when test="doap:repository">
           <xsl:for-each select="doap:repository/doap:SVNRepository">
-              <table>
-                <tr>
+            <table>
+              <tr>
                 <td class="left">Browse</td>
                 <td class="right">
                   <xsl:apply-templates select="doap:browse/@*" />
                 </td>
-                </tr>
-                <tr>
+              </tr>
+              <tr>
                 <td class="left">Checkout</td>
                 <td class="right">
                   <pre>svn co <xsl:apply-templates select="doap:location/@rdf:resource" /></pre>
                 </td>
-                </tr>
-              </table>
+              </tr>              
+            </table>
           </xsl:for-each>
-            </xsl:when>
-            <xsl:otherwise>
+        </xsl:when>
+        <xsl:otherwise>
           <p>No source control information provided.</p>
-            </xsl:otherwise>
-          </xsl:choose>
-        </div>
-   </xsl:template>
+        </xsl:otherwise>
+      </xsl:choose>
+    </div>
+  </xsl:template>
 
   <xsl:template match="doap:release/doap:Version">
     <tr>
@@ -275,41 +279,41 @@
             <td class="right"><xsl:value-of  select="doap:revision" /></td>
             <td class="right"><xsl:value-of  select="doap:created" /></td>
     </tr>
-    </xsl:template>
-    
+  </xsl:template>
+  
   <xsl:template name="project-releases">
     <xsl:call-template name="section-header">
       <xsl:with-param name="title" select="'Source and Releases'" />
     </xsl:call-template>
-      
+
     <xsl:if test="doap:download-page">
-      <div class="content">
+    <div class="content">
       <p>Releases can be downloaded from
         <xsl:apply-templates select="doap:download-page/@*" />
         .
       </p>
-      </div>
+    </div>
     </xsl:if>
-    
+
     <xsl:choose>
     <xsl:when test="doap:release">
-    <p>Most recent releases:</p>
-    
-      <div class="content">              
-      <table>
-       <tr><td>Release</td><td>Version</td><td>Date</td></tr>         
-       <xsl:apply-templates select="doap:release/doap:Version" />   
-          </table>
-      </div>
+      <p>Most recent releases:</p>
+
+      <div class="content">  
+        <table>
+         <tr><td>Release</td><td>Version</td><td>Date</td></tr>         
+         <xsl:apply-templates select="doap:release/doap:Version" />   
+        </table>
+     </div>
     </xsl:when>
     <xsl:otherwise>
       <p>No current releases.</p>
     </xsl:otherwise>
     </xsl:choose>
-    
+   
    <p>Access to the source code:</p>
    
    <xsl:call-template name="project-scm" />
-    
-    </xsl:template>
+
+  </xsl:template>
 </xsl:stylesheet>