<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match="/"> 
	 <html>
	   <body>
	    <ol>
	       <xsl:apply-templates select = "//station" > 
	         <xsl:sort select="@name"/> 
                 <xsl:sort select = "@genre" />
 	       </xsl:apply-templates>
	    </ol>
	   </body>
	 </html>
</xsl:template>
<xsl:template match = "station" >
	<li>
	        <ul>
		  <li>
		  <a>
		    <xsl:attribute name="href">view.php?tv=1&amp;id=<xsl:value-of select="@id" /></xsl:attribute>http://yp.shoutcast.com/sbin/tunein-tvstation.pls?id=<xsl:value-of select="@id" />&amp;filename=playlist.pls
		  </a>
		  </li>
		  <li>
		    <strong><xsl:value-of select = "@name" />
		    </strong>
		  </li>
		  <li>
		    <xsl:value-of select = "@genre" /> 
		  </li>
		<li><xsl:value-of select = "@ct" /></li>
		<li><xsl:value-of select = "@lc" /></li>
		<li><xsl:value-of select = "@br" /></li>
		<li><xsl:value-of select = "@rt" /></li>
	        </ul>
	</li>
</xsl:template>
</xsl:stylesheet>
