<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="ISO-8859-1"/>
<xsl:template match="person">
<html>
<head>
<title><xsl:value-of select="name"/></title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table border="0" cellspacing="0" cellpadding="0">
<xsl:apply-templates/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="name">
<tr>
<td><b>Name</b></td>
<td><xsl:value-of select="."/></td>
</tr>
</xsl:template>
<xsl:template match="address">
<tr>
<td valign="top"><b>Adress</b></td>
<td>
<xsl:value-of select="./street"/><br/>
<xsl:value-of select="./ort"/><br/>
<xsl:value-of select="./country"/><br/>
</td>
</tr>
</xsl:template>
<xsl:template match="tel">
<tr>
<td><b>Tel</b></td>
<td><xsl:value-of select="."/></td>
</tr>
</xsl:template>
<xsl:template match="email">
<tr>
<td><b>Email</b></td>
<td><a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></a></td>
</tr>
</xsl:template>
<xsl:template match="url">
<tr>
<td><b>Url</b></td>
<td><a><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></a></td>
</tr>
</xsl:template>
</xsl:stylesheet>
|