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/09/10 15:17:20 UTC

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

Author: rgardler
Date: Mon Sep 10 06:17:20 2007
New Revision: 574239

URL: http://svn.apache.org/viewvc?rev=574239&view=rev
Log:
Just use person name as a header

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

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl?rev=574239&r1=574238&r2=574239&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl Mon Sep 10 06:17:20 2007
@@ -34,7 +34,7 @@
 
 <xsl:template match="foaf:Person">
   <section>
-   <title>FOAF Metadata of <xsl:value-of select="foaf:name"/> </title>
+   <title><xsl:value-of select="foaf:name"/> </title>
    <xsl:choose>
    <xsl:when test="foaf:depiction/@rdf:resource">
     <p><img src="{foaf:depiction/@rdf:resource}" height="120" border="0" /></p>
@@ -94,19 +94,21 @@
     </xsl:choose>
     </table>
     </p>
-    </section>
     
     <br/>
     
-    <section>
-    <title>Friends</title>
-    <p>
-    <table>
-      <tr><th>ID</th><th>Name</th><th>Mail</th></tr>
-      <xsl:apply-templates select="foaf:knows"/>
-     </table>
-    </p>
-    </section>
+    <xsl:if test="foaf:knows">
+        <section>
+            <title>Friends</title>
+            <p>
+            <table>
+              <tr><th>ID</th><th>Name</th><th>Mail</th></tr>
+              <xsl:apply-templates select="foaf:knows"/>
+             </table>
+            </p>
+        </section>
+    </xsl:if>
+  </section>
 </xsl:template>
 
 <xsl:template name="header">