<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:art="http://www.artist.nl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html"/>
	<xsl:template match="/">
		<html>
			<body>
				<h2 fontcolor="purple">
					<font color="purple">Mijn CD Collectie</font>
				</h2>
				<table border="1">
					<tr bgcolor="lime">
					
						<xsl:for-each select="//art:catalog/art:cd[last()]/*">
							<th>
								<h3>
									<xsl:value-of select="name()"/>
								</h3>
							</th>
						
						</xsl:for-each>
						
						
						
					</tr>
					<xsl:for-each select="art:catalog/art:cd">
						<xsl:sort select="art:artiest"/>
						<xsl:variable name="kleur">
							<xsl:choose>
								<xsl:when test="art:land = 'USA'">orange</xsl:when>
								<xsl:when test="art:land = 'UK'">blue</xsl:when>
								<xsl:when test="art:land = 'EU'">yellow</xsl:when>
								<xsl:when test="art:land = 'Norway'">red</xsl:when>
								<xsl:otherwise>purple</xsl:otherwise>
							</xsl:choose>
						</xsl:variable>
						<tr bgcolor="{$kleur}">
							<xsl:for-each select="./*">
								<td>
									<xsl:value-of select="."/>
								</td>
							</xsl:for-each>
							<!--
							<td><xsl:value-of select="art:title"/></td>
							<td><xsl:value-of select="art:artist"/></td>
							<td><xsl:value-of select="art:land"/></td>
							<td><xsl:value-of select="art:company"/></td>
							<td><xsl:value-of select="art:price"/></td>
							<td><xsl:value-of select="art:year"/></td>	
							-->
						</tr>
					</xsl:for-each>
				</table>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
