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

michi at wyona.com michi at wyona.com
Sun Dec 2 13:41:17 CET 2007


Author: michi
Date: 2007-12-02 13:41:17 +0100 (Sun, 02 Dec 2007)
New Revision: 29453

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

Modified: public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
===================================================================
--- public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl	2007-12-02 12:22:52 UTC (rev 29452)
+++ public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl	2007-12-02 12:41:17 UTC (rev 29453)
@@ -10,6 +10,7 @@
   xmlns:foaf="http://xmlns.com/foaf/0.1/"
   xmlns:wyona="http://www.wyona.org/foaf/1.0"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
 >
 
 <!-- IMPORTANT: Needs to correspond to the mime-type which is sent by the server! -->
@@ -116,14 +117,16 @@
 
 <xsl:template match="foaf:knows">
 <xsl:for-each select="foaf:Person">
+  <li>
   <xsl:choose>
     <xsl:when test="rdfs:seeAlso/@rdf:resource">
-  <li><a href="print.html?href={rdfs:seeAlso/@rdf:resource}"><xsl:value-of select="foaf:name"/></a></li>
+  <a href="print.html?href={rdfs:seeAlso/@rdf:resource}"><xsl:value-of select="foaf:name"/></a>
     </xsl:when>
     <xsl:otherwise>
-  <li><xsl:value-of select="foaf:name"/></li>
+  <xsl:value-of select="foaf:name"/>
     </xsl:otherwise>
   </xsl:choose>
+  <xsl:apply-templates select="@dc:description" mode="person"/></li>
 </xsl:for-each>
 </xsl:template>
 
@@ -145,4 +148,8 @@
 </p>
 </xsl:template>
 
+<xsl:template match="@dc:description" mode="person">
+&#160;(<xsl:value-of select="."/>)
+</xsl:template>
+
 </xsl:stylesheet>



More information about the Yanel-commits mailing list