forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmcdon...@apache.org
Subject svn commit: r568608 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
Date Wed, 22 Aug 2007 13:42:13 GMT
Author: gmcdonald
Date: Wed Aug 22 06:42:13 2007
New Revision: 568608

URL: http://svn.apache.org/viewvc?rev=568608&view=rev
Log:
Need to loop through list of people in maintainer, not maintainer itself.

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?rev=568608&r1=568607&r2=568608&view=diff
==============================================================================
--- 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
Wed Aug 22 06:42:13 2007
@@ -429,13 +429,13 @@
             <tr>
               <th>Name</th>
               <th>Email</th>
-            </tr>
-            <xsl:for-each select="doap:maintainer">
+      </tr>
+      <xsl:for-each select="doap:maintainer/foaf:Person">
                 <tr>
-                  <td><xsl:apply-templates select="foaf:Person/foaf:name"/></td>
-                  <td><xsl:apply-templates select="foaf:Person/foaf:mbox/@rdf:resource"/></td>
+                        <td><xsl:apply-templates select="foaf:name"/></td>
+                        <td><xsl:apply-templates select="foaf:mbox/@rdf:resource"/></td>
                 </tr>
-            </xsl:for-each>
+        </xsl:for-each>
           </table>
         </xsl:when>
         <xsl:otherwise>
@@ -448,4 +448,18 @@
   <xsl:template match="foaf:name">
     <xsl:value-of select="normalize-space(.)"/>
   </xsl:template>
+
+  <!-- FIXME:OPEN Below match needs improvement before enabling
+  Need to test for no or empty mbox to leave alternate message-->
+  <!--<xsl:template match="foaf:mbox">
+          <xsl:choose>
+                  <xsl:when test="@rdf:resource!=' '">
+                          <xsl:apply-templates select="@rdf:resource"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                          <p>Not Provided</p>
+                  </xsl:otherwise>
+          </xsl:choose>
+  </xsl:template>-->
+
 </xsl:stylesheet>



Mime
View raw message