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 &quot;$outdir&quot;
      <xsl:apply-templates select="/cdinfo/track"/>
   </xsl:template>

   <xsl:template match="track">
tracknum=`echo <xsl:value-of select="track-number"/> | \
   awk &apos;{printf(&quot;%02d&quot;, $0)}&apos;`
title=&quot;<xsl:value-of select="track-title"/>&quot;
lame --decode &quot;$tracknum-$title.flac&quot; \
   &quot;$outdir/$tracknum-$title.wav&quot;
   </xsl:template>
</xsl:stylesheet>