forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r574729 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
Date Tue, 11 Sep 2007 23:38:20 GMT
Author: rgardler
Date: Tue Sep 11 16:38:19 2007
New Revision: 574729

URL: http://svn.apache.org/viewvc?rev=574729&view=rev
Log:
Tidier handling of some elements

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=574729&r1=574728&r2=574729&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
Tue Sep 11 16:38:19 2007
@@ -45,7 +45,7 @@
                     <tr>
                         <th>Property</th>
                         <th>Value</th>
-                    </tr>
+                    </tr>    
                     <tr>
                         <td>Name</td>
                         <td>
@@ -62,27 +62,6 @@
                             </xsl:choose>
                         </td>
                     </tr>
-
-                    <tr>
-                        <td>Mbox</td>
-                        <xsl:choose>
-                            <xsl:when test="foaf:mbox_sha1sum">
-                                <td>
-                                    <xsl:value-of
-                                        select="foaf:mbox_sha1sum" />
-                                </td>
-                            </xsl:when>
-                            <xsl:otherwise>
-                                <td>
-                                    <a
-                                        href="{foaf:mbox/@rdf:resource}">
-                                        <xsl:value-of
-                                            select="foaf:mbox/@rdf:resource" />
-                                    </a>
-                                </td>
-                            </xsl:otherwise>
-                        </xsl:choose>
-                    </tr>
                     
                     <xsl:apply-templates select="*[not(local-name(.) = 'knows')]"/>
                 </table>
@@ -103,6 +82,35 @@
         <header>
             <title>Person details</title>
         </header>
+    </xsl:template>
+    
+    <xsl:template match="foaf:name">
+    </xsl:template>
+    
+    <xsl:template match="foaf:firstname">
+    </xsl:template>
+    
+    <xsl:template match="foaf:surname">
+    </xsl:template>
+
+    <xsl:template match="foaf:mbox_sha1sum">
+        <tr>
+            <td>Mbox SH1Sum</td>
+            <td>
+                <xsl:value-of select="." />
+            </td>
+        </tr>
+    </xsl:template>
+
+    <xsl:template match="foaf:mbox">
+        <tr>
+            <td>Mbox</td>
+            <td>
+                <a href="{@rdf:resource}">
+                    <xsl:value-of select="@rdf:resource" />
+                </a>
+            </td>
+        </tr>
     </xsl:template>
 
     <xsl:template match="foaf:currentProject">



Mime
View raw message