<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
<xsl:output method="xml" indent="yes" encoding="iso-8859-1"/> 

<xsl:param name="smode" />

<xsl:template match="circus">
	
	<html>
		<head>
			<title>mytable</title>
		</head>
		<body>
		
			<xsl:call-template name="show" />
		
		</body>
	</html>

</xsl:template> 
						
<xsl:template name="show">
	<h1>show overview</h1>

	<table>
		<thead>
			<tr>
				<th>start_day</th>
				<th>end_day</th>
				<th>postcode</th>
				<th>city</th>
				<th>address</th>
				<th>view artists</th>
			</tr>
		</thead>
		
		<tbody>
			<xsl:apply-templates />
		</tbody>
	</table>
</xsl:template>


<xsl:template match="show" name="srow">
	<tr>
		<td><xsl:value-of select="current()/start_day" /></td>
		<td><xsl:value-of select="current()/end_day" /></td>
		<td><xsl:value-of select="current()/postcode" /></td>
		<td><xsl:value-of select="current()/city" /></td>
		<td><xsl:value-of select="current()/address" /></td>
		<td></td>
	</tr>
</xsl:template>

</xsl:stylesheet>
