This repository has been archived on 2026-07-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2012-01-08 15:18:29 +01:00

48 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="vcard">
<h1>
<xsl:value-of select="../id" />
</h1>
<table id="vcard" cellspacing="7">
<xsl:for-each select="property">
<tr>
<td>
<xsl:value-of select="@name" />&#160;
<xsl:if test="count(type) > 0">
<span id="vcard-proptype">(<xsl:for-each select="type">
<xsl:value-of
select="normalize-space(.)" />&#160;
</xsl:for-each>)</span>
</xsl:if>
</td>
<td>
<xsl:value-of select="value" />
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="formatted-property">
<tr>
<td>
<xsl:value-of select="@name" />&#160;
<xsl:if test="count(type) > 0">
<span id="vcard-proptype">(<xsl:for-each select="type">
<xsl:value-of
select="normalize-space(.)" />&#160;
</xsl:for-each>)</span>
</xsl:if>
</td>
<td>
<xsl:copy-of select="value" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>