[Yanel-commits] rev 29443 -
public/yanel/contributions/realms/foaf/data/xslt
michi at wyona.com
michi at wyona.com
Sat Dec 1 23:19:19 CET 2007
Author: michi
Date: 2007-12-01 23:19:18 +0100 (Sat, 01 Dec 2007)
New Revision: 29443
Modified:
public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
Log:
also make friends printable
Modified: public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
===================================================================
--- public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl 2007-12-01 22:07:56 UTC (rev 29442)
+++ public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl 2007-12-01 22:19:18 UTC (rev 29443)
@@ -113,7 +113,14 @@
<xsl:template match="foaf:knows">
<xsl:for-each select="foaf:Person">
- <li><a href="{rdfs:seeAlso/@rdf:resource}"><xsl:value-of select="foaf:name"/></a></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>
+ </xsl:when>
+ <xsl:otherwise>
+ <li><xsl:value-of select="foaf:name"/></li>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:for-each>
</xsl:template>
More information about the Yanel-commits
mailing list