- Support multiple mailing-list properties
- Support dc:title in mailing list element

git-svn-id: https://svn.apache.org/repos/asf/forrest/trunk@600694 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl b/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
index ef447a4..22ecad3 100644
--- a/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
+++ b/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
@@ -149,12 +149,25 @@
        </xsl:if>
     </body>
   </xsl:template>
-  <xsl:template match="@rdf:resource"><a>
-    <xsl:attribute name="href">
-      <xsl:value-of select="."/>
-    </xsl:attribute>
-    <xsl:value-of select="."/></a>
+  
+  <xsl:template match="@rdf:resource">
+    <a>
+      <xsl:attribute name="href">
+        <xsl:value-of select="."/>
+      </xsl:attribute>
+      <xsl:choose>
+        <xsl:when test="../@dc:title">
+          <xsl:value-of select="../@dc:title"/>
+        </xsl:when>    
+        <xsl:otherwise>
+    	  <xsl:value-of select="."/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </a>
   </xsl:template>
+  
+  <xsl:template match="@dc:title"/>
+  
   <xsl:template match="doap:programming-language"><a>
     <xsl:attribute name="href">/projectDetails/index/byLang/<xsl:value-of select="."/>.html</xsl:attribute>
     <xsl:value-of select="."/></a>
@@ -272,11 +285,13 @@
             <td class="right">
               <xsl:choose>
                 <xsl:when test="doap:mailing-list/@*">
-                  <xsl:apply-templates select="doap:mailing-list/@*" />
+                  <ul>
+                    <xsl:apply-templates select="doap:mailing-list" />
+                  </ul>
                 </xsl:when>
                 <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
+                  None Defined
+                </xsl:otherwise>
               </xsl:choose>
             </td>
           </tr>
@@ -587,6 +602,10 @@
     </xsl:if>
   </xsl:template>
   
+  <xsl:template match="doap:mailing-list">
+    <li><xsl:apply-templates select="@rdf:resource" /></li>
+  </xsl:template>
+  
   <xsl:template match="foaf:name">
     <xsl:value-of select="normalize-space(.)"/>
   </xsl:template>