[Yanel-commits] rev 28549 -
public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt
michi at wyona.com
michi at wyona.com
Tue Nov 6 23:31:08 CET 2007
Author: michi
Date: 2007-11-06 23:31:07 +0100 (Tue, 06 Nov 2007)
New Revision: 28549
Modified:
public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl
Log:
check on mime-type
Modified: public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl
===================================================================
--- public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl 2007-11-06 22:23:03 UTC (rev 28548)
+++ public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl 2007-11-06 22:31:07 UTC (rev 28549)
@@ -79,7 +79,7 @@
<xsl:template match="foaf:result">
<p>
- <b><a href="print.html?href={foaf:url}"><xsl:value-of select="foaf:title"/></a></b>
+ <b><xsl:choose><xsl:when test="foaf:mime-type/@suffix = 'rdf'"><a href="print.html?href={foaf:url}"><xsl:value-of select="foaf:title"/></a></xsl:when><xsl:otherwise><a href="{foaf:url}"><xsl:value-of select="foaf:title"/></a></xsl:otherwise></xsl:choose></b>
<br/>
<xsl:value-of select="foaf:excerpt"/>
<div class="original-href"><a href="{foaf:url}"><xsl:value-of select="foaf:url"/></a> (Profile Provider: TODO)</div>
More information about the Yanel-commits
mailing list