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/06/08 16:27:38 UTC

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

Author: rgardler
Date: Fri Jun  8 07:27:37 2007
New Revision: 545520

URL: http://svn.apache.org/viewvc?view=rev&rev=545520
Log:
Remove an unnecessary template

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=545520&r1=545519&r2=545520
==============================================================================
--- 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 Fri Jun  8 07:27:37 2007
@@ -22,9 +22,13 @@
                 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
                 xmlns:doap="http://usefulinc.com/ns/doap#"
                 xmlns:foaf="http://xmlns.com/foaf/0.1/"
-		xmlns:dc="http://purl.org/dc/elements/1.1/"
+	            xmlns:dc="http://purl.org/dc/elements/1.1/"
                 xmlns:asfext="http://projects.apache.org/ns/asfext#"
                 >
+                
+    
+  <xsl:import href="lm://foaf.transform.locationmap.descriptorIndex"/>
+                
   <xsl:template match="/">
     <xsl:apply-templates select="doap:Project|rdf:RDF|atom:feed" />
   </xsl:template>
@@ -35,14 +39,12 @@
     <xsl:apply-templates select="atom:entry/atom:content/doap:Project" />
   </xsl:template>
   <xsl:template match="doap:Project">
-    <xsl:call-template name="project" />
-  </xsl:template>
-  <xsl:template name="project">
     <document>
       <xsl:call-template name="header" />
       <xsl:call-template name="body" />
     </document>
   </xsl:template>
+
   <xsl:template name="header">
     <header><link rel="stylesheet" type="text/css" href="../html/projects.css" />
       <title>Information about <xsl:value-of select="doap:name"/></title>
@@ -52,6 +54,7 @@
     <body>
       <xsl:call-template name="project-header" />
       <xsl:call-template name="project-summary" />
+      <xsl:call-template name="project-contributors" />
       <section>
         <title>Description</title>
         <xsl:choose>
@@ -332,5 +335,17 @@
       </p>
       <xsl:call-template name="project-scm" />
     </section>
+  </xsl:template>
+  
+  <xsl:template name="project-contributors">
+    <section>
+      <title>Contributors</title>
+      <note>This list may not be exhaustive.</note>
+      <xsl:apply-templates select="doap:maintainer"/>
+    </section>
+  </xsl:template>
+  
+  <xsl:template match="foaf:Person">
+    <p>A person</p>
   </xsl:template>
 </xsl:stylesheet>