<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>

<xsl:include href="format.xsl"/>

<xsl:template match="/">

<html>
<head>
	<title>Address book</title>
	<xsl:call-template name="sp_style"/>
</head>

<body style="background:silver;">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
	<td background="images/left.gif" height="20"><div style="width:9px">
		<spacer /></div></td>
	<td class="tab" align="center" width="34%" onclick="goUrl('3.xml?from=7')">3.xml</td>
	<td background="images/right.gif" height="20"><div style="width:9px">
		<spacer /></div></td>
	<td><div style="width:1px"><spacer /></div></td>
	<td background="images/left.gif" height="20"><div style="width:9px">
		<spacer /></div></td>
	<td class="tab" align="center" width="34%" onclick="goUrl('4.xml?from=7')">4.xml</td>
	<td background="images/right.gif" height="20"><div style="width:9px">
		<spacer /></div></td>
	<td><div style="width:1px"><spacer /></div></td>
	<td background="images/left_selected.gif" height="20">
		<div style="width:9px"><spacer /></div></td>
	<td class="tabSelected" align="center" width="34%" onclick="goUrl('5.xml?from=7')">
		5.xml</td>
	<td background="images/right_selected.gif" height="20"><div style="width:9px">
		<spacer /></div></td>
</tr>
<tr>
	<td colspan="19" style="background:#DEDEDE" height="1"><spacer /></td>
</tr>
</table>

<xsl:for-each select="//root/person">
	<p/><font color="red"><xsl:value-of select="name"/></font>
	<p/><font color="green"><xsl:value-of select="surname"/></font>
	<p/><font color="blue"><xsl:value-of select="phone"/></font>
	<br/><hr/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
