summaryrefslogtreecommitdiff
path: root/tracklist.xsl
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2010-09-23 10:29:42 +0200
committeryvesf <yvesf-git@xapek.org>2010-09-23 10:29:42 +0200
commitfade859723fa5b4607fd060c0b1778854d680144 (patch)
tree0703dcd96d6bef0537282515e31ace4ed5aa64e0 /tracklist.xsl
downloadscripts-fade859723fa5b4607fd060c0b1778854d680144.tar.gz
scripts-fade859723fa5b4607fd060c0b1778854d680144.zip
import
Diffstat (limited to 'tracklist.xsl')
-rw-r--r--tracklist.xsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tracklist.xsl b/tracklist.xsl
new file mode 100644
index 0000000..6a415a9
--- /dev/null
+++ b/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>