<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>

<xsl:template match="/">

<html>
<head>
	<title>Address book</title>
</head>

<body style="background:silver;">

<p/><table width="70%" align="center" style="background:silver;color:menutext;font:message-box;">
<tr>
	<th align="center" style="color:activecaptiontext;font:caption;">Name</th>
	<th align="center" style="color:activecaptiontext;font:caption;">Surname</th>
	<th align="center" style="color:activecaptiontext;font:caption;">Phone</th>
</tr>
<xsl:for-each select="//root/person">
<tr>
	<td align="center"><font color="red"><xsl:value-of select="name"/></font></td>
	<td align="center"><font color="green"><xsl:value-of select="surname"/></font></td>
	<td align="center"><font color="blue"><xsl:value-of select="phone"/></font></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
