summaryrefslogtreecommitdiffstats
path: root/ns-schema.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'ns-schema.xsl')
-rw-r--r--ns-schema.xsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/ns-schema.xsl b/ns-schema.xsl
index 8c4fdc4..ecdc5b6 100644
--- a/ns-schema.xsl
+++ b/ns-schema.xsl
@@ -329,8 +329,11 @@
<xsl:when test="starts-with(.//foaf:mbox/@rdf:resource,'mailto:webmaster@kanzaki')">
<a href="/info/disclaimer#webmastermail">See contact information</a>
</xsl:when>
+ <xsl:when test="starts-with(.//foaf:mbox/@rdf:resource,'mailto:')">
+ <a href="{.//foaf:mbox/@rdf:resource}"><xsl:value-of select="substring-after(.//foaf:mbox/@rdf:resource,'mailto:')"/></a>
+ </xsl:when>
<xsl:otherwise>
- <a href="{.//foaf:mbox/@rdf:resource}"><xsl:value-of select=".//foaf:mbox/@rdf:resource"/></a>
+ <a href="mailto:{.//foaf:mbox/@rdf:resource}"><xsl:value-of select=".//foaf:mbox/@rdf:resource"/></a>
</xsl:otherwise>
</xsl:choose>
)