<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html [
 <!ENTITY Egrave "&#200;">
 <!ENTITY egrave "&#232;">
 <!ENTITY agrave "&#224;">
 <!ENTITY ugrave "&#249;">
 <!ENTITY nbsp "&#160;">
 <!ENTITY copy "&#0169;">
 <!ENTITY laquo "&#0171;">
 <!ENTITY raquo "&#0187;">
]>

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

  <xsl:param name="currpage" />
  <xsl:param name="language" />
  <xsl:param name="sortField" />
  <xsl:param name="sortOrder" />
  <xsl:param name="render_links">true</xsl:param>
  <xsl:param name="limit">1000</xsl:param>

  <xsl:variable name="dataType">
   <xsl:choose>
    <xsl:when test="$sortField='id'">number</xsl:when>
    <xsl:otherwise>text</xsl:otherwise>
   </xsl:choose>
  </xsl:variable>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<xsl:template match="/">
  <xsl:apply-templates select="music"/>
</xsl:template>

<xsl:template match="/music">
  <xsl:apply-templates select="toptracks"/>
</xsl:template>

<xsl:template match="toptracks">
  <ul>
    <xsl:for-each select="toptrack">
      <li>
        (<xsl:value-of select="album"/>)
        <a href="/music/{filename}" title="Download track"><xsl:value-of select="title"/></a><xsl:text> </xsl:text>
        <a href="/music/?play={streampreview}" title="Play embedded"><img src="/_images/btn.play.png" alt="PLAY Online" /></a> 
      </li>
    </xsl:for-each>
  </ul>
</xsl:template>



</xsl:stylesheet>

