[Yanel-commits] rev 29961 - public/yanel/contributions/realms/foaf/data/xslt

michi at wyona.com michi at wyona.com
Mon Dec 17 22:47:04 CET 2007


Author: michi
Date: 2007-12-17 22:47:03 +0100 (Mon, 17 Dec 2007)
New Revision: 29961

Modified:
   public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
Log:
depiction added

Modified: public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
===================================================================
--- public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl	2007-12-17 21:41:23 UTC (rev 29960)
+++ public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl	2007-12-17 21:47:03 UTC (rev 29961)
@@ -51,12 +51,12 @@
 <xsl:apply-templates select="/wyona:foaf/rdf:RDF/foaf:Person/foaf:workplaceHomepage"/>
 <xsl:apply-templates select="/wyona:foaf/rdf:RDF/foaf:Person/foaf:homepage"/>
 <xsl:apply-templates select="/wyona:foaf/rdf:RDF/foaf:Person/foaf:phone"/>
+<xsl:apply-templates select="/wyona:foaf/rdf:RDF/foaf:Person/foaf:depiction"/>
 
 
+<xsl:if test="/wyona:foaf/rdf:RDF/foaf:Person/foaf:knows">
 <h3>People which <xsl:value-of select="/wyona:foaf/rdf:RDF/foaf:Person/foaf:name"/> knows about</h3>
-<!--
-<h3>Friends</h3>
--->
+</xsl:if>
 <ul>
 <xsl:apply-templates select="/wyona:foaf/rdf:RDF/foaf:Person/foaf:knows"/>
 </ul>
@@ -179,6 +179,12 @@
 </p>
 </xsl:template>
 
+<xsl:template match="foaf:depiction">
+<p>
+<img src="{@rdf:resource}" height="200"/>
+</p>
+</xsl:template>
+
 <xsl:template match="@dc:description" mode="person">
 &#160;(<xsl:value-of select="."/>)
 </xsl:template>



More information about the Yanel-commits mailing list