<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0">
	
	<xsl:output method="html"/>
	
		<!-- Match the root element -->
		<xsl:template match="/">
			<html>
				<body>
					<h2>My Music Catalog</h2>
					<xsl:apply-templates/>
				</body>
			</html>
		</xsl:template>
		
		<!-- Match the children of root -->
		<xsl:template match="/MusicCatalog/Item">
			<xsl:apply-templates/>
			<hr/>
		</xsl:template>

		<!-- Match the remaining children -->
		<xsl:template match="/MusicCatalog/Item/Artist">
			Artist: <xsl:apply-templates/>
			<br/>
		</xsl:template>

		<xsl:template match="/MusicCatalog/Item/Title">
			Title: <xsl:apply-templates/>
			<br/>
		</xsl:template>

		<xsl:template match="/MusicCatalog/Item/Year">
			Year: <xsl:apply-templates/>
			<br/>
		</xsl:template>

		<xsl:template match="/MusicCatalog/Item/Member">
			Member: <xsl:apply-templates/>
			<br/>
		</xsl:template>


</xsl:stylesheet>

