<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>


<xsl:template match="/"> 
	 <WinampXML>
	    <playlist num_entries="500" label="SHOUTcast Top 500">
	       <xsl:apply-templates select = "//station" > 
	          
	       </xsl:apply-templates>
	    </playlist>
	 </WinampXML>
</xsl:template>
<xsl:template match = "station" >
	<entry>
	<xsl:attribute name="Playstring">http://yp.shoutcast.com/sbin/tunein-station.pls?id=<xsl:value-of select="@id" />&amp;filename=playlist.pls</xsl:attribute>
		<Name><xsl:value-of select = "@name" /></Name>
		<Nowplaying><xsl:value-of select = "@ct" /></Nowplaying>
		<Genre><xsl:value-of select = "@genre" /></Genre> 
		<Listeners><xsl:value-of select = "@lc" /></Listeners>
		<Bitrate><xsl:value-of select = "@br" /></Bitrate>
	</entry>
</xsl:template>
</xsl:stylesheet>
