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/19 01:06:08 UTC
svn commit: r577101 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
Author: rgardler
Date: Tue Sep 18 16:06:08 2007
New Revision: 577101
URL: http://svn.apache.org/viewvc?rev=577101&view=rev
Log:
Some basic handling of (one way) of handling account info.
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=577101&r1=577100&r2=577101&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 18 16:06:08 2007
@@ -261,6 +261,33 @@
</tr>
</xsl:template>
+ <xsl:template match="foaf:holdsAccount">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="foaf:OnlineAccount">
+ <xsl:choose>
+ <xsl:when test="foaf:accountServiceHomepage">
+ <tr>
+ <td>
+ <link href="{foaf:homepage/@rdf:resource}">
+ <xsl:value-of select="foaf:accountServiceHomepage/@rdf:resource" />
+ </link>
+ </td>
+ <td>
+ <xsl:if test="foaf:seeAlso">
+ <link href="{foaf:seeAlso/@rdf:resource}">
+ <xsl:value-of select="foaf:seeAlso/@dc:format" />
+ </link>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
<xsl:template match="foaf:schoolHomepage/@rdf:resource">
<tr>
<td>School Homepage</td>