summaryrefslogtreecommitdiff
path: root/myspace/tracklist.xsl
blob: 6a415a996a04153945367edf40a37b69ed67dd88 (plain)
1
2
3
4
5
6
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fuck="http://xspf.org/ns/0/"><xsl:output method="text"/><xsl:template match="/"><xsl:for-each select="fuck:playlist/fuck:trackList/fuck:track"><xsl:value-of select="translate(translate(fuck:song/@songId, ' ', '_'), ';', '_')"/>;<xsl:value-of select="translate(translate(fuck:song/@albumId, ' ', '_'), ';', ' ')"/>;<xsl:value-of select="fuck:song/@releaseId"/>;<xsl:value-of select="translate(translate(fuck:title, ' ','_') , ';', '_')"/>;<xsl:value-of select="translate(translate(fuck:song/fuck:artists/fuck:artist[1]/@name, ';', '_'), ' ', '_')"/>
<xsl:text>
</xsl:text>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>