<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<head><title>Baptisms at Thorney, CAM</title>
<style type="text/css">
table{
	width: 25em;
font-family: Verdana, 'Lucida Sans Unicode', sans-serif, Arial;
	border-collapse:collapse;
}
th{
	text-align: center;
	font-size: 80%;
	background-color: #edf2be;
	color: #000;
	border: 1px solid #B6C995;
}
td{
	background-color: #F4FAC8;
	color: #000;
	padding: 2px 4px;
	border: 1px solid #B6C995;
}
</style>

</head>
<body>
<table>
  <thead>
   <tr>
       <td><B>Born</B></td>
       <td><B>Name</B></td>
       <td><B>Surname</B></td>
   </tr>
  </thead> 
  <tbody>
   <xsl:for-each select="thorney/bap">
    <xsl:sort select="year" />
    <tr>	  
       <td><xsl:value-of select="year" /></td>
       <td><xsl:value-of select="name" /></td>
       <td><xsl:value-of select="surname" /></td>
    </tr>
   </xsl:for-each>
  </tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>