forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r574239 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
Date Mon, 10 Sep 2007 13:17:20 GMT
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">



Mime
View raw message