diff options
Diffstat (limited to 'myspace/tracklist.xsl')
-rw-r--r-- | myspace/tracklist.xsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/myspace/tracklist.xsl b/myspace/tracklist.xsl new file mode 100644 index 0000000..6a415a9 --- /dev/null +++ b/myspace/tracklist.xsl @@ -0,0 +1,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> |