<?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;">

<form action="3.xml" method="post" name="form">

<xsl:for-each select="//root/person">
	<p/><input>
		<xsl:attribute name="name">name</xsl:attribute>
		<xsl:attribute name="value">John</xsl:attribute>
		</input>	
	<p/><input>
		<xsl:attribute name="name">surname</xsl:attribute>
		<xsl:attribute name="value">Smith</xsl:attribute>
		</input>	
	<p/><input>
		<xsl:attribute name="name">phone</xsl:attribute>
		<xsl:attribute name="value">111-2233</xsl:attribute>
		</input>	
</xsl:for-each>

<p/><input>
		<xsl:attribute name="type">submit</xsl:attribute>
		<xsl:attribute name="name">OK</xsl:attribute>
		<xsl:attribute name="value">Submit</xsl:attribute>
	</input>
</form>			
<form method="get" action="3.xml">
	<input>
		<xsl:attribute name="type">submit</xsl:attribute>
		<xsl:attribute name="name">cancel</xsl:attribute>
		<xsl:attribute name="value">Cancel</xsl:attribute>
	</input>	
</form>

</body>
</html>
</xsl:template>
</xsl:stylesheet>
