mp32wav.xsl
776 Bytes
<?xml version="1.0" encoding="ISO-8859-15"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="no" encoding="ISO-8859-15" />
<xsl:template match="/">
outdir="../../../wav/<xsl:value-of select="/cdinfo/cd-artist"/>"
outdir="$outdir/<xsl:value-of select="/cdinfo/cd-title"/>"
mkdirhier "$outdir"
<xsl:apply-templates select="/cdinfo/track"/>
</xsl:template>
<xsl:template match="track">
tracknum=`echo <xsl:value-of select="track-number"/> | \
awk '{printf("%02d", $0)}'`
title="<xsl:value-of select="track-title"/>"
lame --decode "$tracknum-$title.flac" \
"$outdir/$tracknum-$title.wav"
</xsl:template>
</xsl:stylesheet>