<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  <xsl:template match="rolodex/contact">
    <html>
    <body>
    <h1>Contact Detail</h1>
    <table border="1" cellpadding="2">
		<xsl:for-each select="field">
			<tr>
			<td>
			<xsl:value-of select="@id"/>					
			</td>
			<td>
			<xsl:value-of select="field_value"/>
			</td>
			</tr>
		</xsl:for-each>
    </table>
    <table border="0" cellpadding="2">
	  <tr>
	  <td>
			<a><xsl:attribute name="href">rolodex6.asp?mode=editdetail&amp;email=<xsl:value-of select="field[@id='email']/field_value" /></xsl:attribute>Edit this record</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>	  
    </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

