<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">         

<xsl:template match="/">     
	<html>               <!--root rule-->
  		<head><title>My favourite musicians</title></head>
		<body>
		<xsl:apply-templates />
		</body>
	</html>
</xsl:template>

<xsl:template match="musicians">
	<table border="1" cellpadding="5">
		<xsl:call-template name="header" />
		 <xsl:apply-templates select="musician"/> 
	</table>
</xsl:template>

<xsl:template match="musician">
<!-- different numbering result as in musicians5.xsl-->
<xsl:if test="NrOfRecordings != 1">
	<tr>
		<td><xsl:number value="position()"/><xsl:text>.</xsl:text></td>
		<td><xsl:value-of select="name"/></td>
		<td><xsl:value-of select="instrument"/></td>
		<td><xsl:value-of select="@genre"/></td>
		<td><xsl:value-of select="NrOfRecordings"/></td>	
	</tr>
</xsl:if>
</xsl:template>

<xsl:template name="header">
	<tr>
		<th>Number</th>
		<th>Name</th>
		<th>Instrument</th>
		<th>Genre</th>
		<th>Recordings</th>
	</tr>
</xsl:template>


</xsl:stylesheet>
<!-- Stylus Studio meta-information - (c)1998-2003. Sonic Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="oefeningen KUL" userelativepaths="yes" externalpreview="no" url="musicians.xml" htmlbaseurl="" outputurl="" processortype="xalan" profilemode="0" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" ><parameterValue name="number" value="'false()'"/></scenario></scenarios><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
-->