<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  <xsl:template match="rolodex/contact">
    <html>
    <body>
    <form id="frmEditContact" name="frmEditContact" method="post"><xsl:attribute name="action">rolodex6.asp?mode=updatedetail&amp;email=<xsl:value-of select="field[@id='email']/field_value"/></xsl:attribute>
    <h1>Edit Contact Detail</h1>
    <table border="1" cellpadding="2">
		<xsl:for-each select="field">
			<tr>
			<td>
			<xsl:value-of select="@id"/>					
			</td>
			<td>
			<input type="text" size="30"> <xsl:attribute name="id"> <xsl:value-of select="@id" /> </xsl:attribute> <xsl:attribute name="name"><xsl:value-of select="@id" /></xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="field_value" /> </xsl:attribute></input>
			</td>
			</tr>
		</xsl:for-each>
    </table>
    <table border="0" cellpadding="2">
	  <tr>
	  <td>
			<a href="javascript:document.forms(0).submit();">Submit record update</a>
	  </td>
	  </tr>
	  <tr>
	  <td>
			<a><xsl:attribute name="href">rolodex6.asp?mode=deletedetail&amp;email=<xsl:value-of select="field[@id='email']/field_value" /></xsl:attribute>Delete this record</a>
	  </td>
	  </tr>
	  <tr>
	  <td>
			<a><xsl:attribute name="href">rolodex6.asp</xsl:attribute>Return to contact list</a>
	  </td>
	  </tr>
	 </table>	      
	</form>
    </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

