<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<style type="text/css">
h1.title { text-align: center; }
h4.subtitle { text-align: center; }
desc { margin-left: 10px; }
</style>
<script language="JavaScript">
function change(str,col) { document.getElementById(str).style.backgroundColor=col; }
</script>

<head><title><xsl:value-of select="site/title"/></title></head>
<body vlink="#BB99CC" alink="white">

<xsl:attribute name="bgcolor">
<xsl:choose> <xsl:when test="site/bgcolor"> <xsl:value-of select="site/bgcolor"/> </xsl:when>
<xsl:otherwise> #553344 </xsl:otherwise> </xsl:choose>
</xsl:attribute>

<xsl:attribute name="text">
<xsl:choose> <xsl:when test="site/txcolor"> <xsl:value-of select="site/txcolor"/> </xsl:when>
<xsl:otherwise> white </xsl:otherwise> </xsl:choose>
</xsl:attribute>

<xsl:attribute name="link">
<xsl:choose> <xsl:when test="site/lkcolor"> <xsl:value-of select="site/lkcolor"/> </xsl:when>
<xsl:otherwise> #9999FF </xsl:otherwise> </xsl:choose>
</xsl:attribute>

<font size="+1">
<h1 class="title"><xsl:value-of select="site/title"/></h1>
<xsl:apply-templates select="site/subtitle"/>
<hr/>
<xsl:copy-of select="site/notes"/>

<xsl:apply-templates select="site/instrumentation"/>

<table style="margin-left: 50px;">
<xsl:apply-templates select="site/item"/>
</table>

<hr/>
<i>All Music Copyright 1999 -- 2005, Woodley Packard</i>

</font>
</body></html>
</xsl:template>

<xsl:template match="instrumentation">
<p style="text-indent: -20px; margin-left: 20px;"> Instrumentation: <br/>
<xsl:for-each select="i">
<xsl:copy-of select="."/><br/>
</xsl:for-each>
</p>
</xsl:template>

<xsl:template match="item">
<xsl:param name="URL" select="url"/>
<tr><td align="right">
<xsl:choose> <xsl:when test='url'>
	<a href="{$URL}">
	<xsl:copy-of select="name"/>
	<xsl:for-each select="key">
		in <xsl:value-of select="."/>
	</xsl:for-each>
	</a>
</xsl:when><xsl:otherwise>
	<xsl:copy-of select="name"/>
	<xsl:for-each select="key">
		in <xsl:value-of select="."/>
	</xsl:for-each>
</xsl:otherwise></xsl:choose>
</td><td width="10px"></td><td>
<xsl:copy-of select="notes"/>
</td></tr>
</xsl:template>

<xsl:template match="subtitle"> <h4 class="subtitle"><xsl:value-of select="."/> </h4> </xsl:template>

</xsl:stylesheet>

