You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
<?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="/">
|
|
cddb=`echo <xsl:value-of select="/cdinfo/cddb"/> | sed 's/0x\(.*\)/\1/g'`
|
|
date=`date`
|
|
|
|
<xsl:apply-templates select="/cdinfo/track"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="track">
|
|
track="`echo <xsl:value-of select="track-number"/> | /usr/bin/awk '{printf("%02d", $0)}'`"
|
|
track="${track}-<xsl:value-of select="track-title"/>"
|
|
|
|
cat > "${track}.xinf" <<- end
|
|
#
|
|
# X-CD-Roast 0.98alpha15 - INF-File
|
|
# created: $date
|
|
# by: getcd.sh
|
|
#
|
|
file = "./${track}.wav"
|
|
track = <xsl:value-of select="track-number"/> of <xsl:value-of select="/cdinfo/cd-tracks"/>
|
|
title = "<xsl:value-of select="track-title"/>"
|
|
artist = "<xsl:value-of select="track-artist"/>"
|
|
size = <xsl:value-of select="track-length"/>
|
|
type = 1
|
|
rec_type = 0
|
|
preemp = 0
|
|
copyperm = 0
|
|
stereo = 1
|
|
# from CD:
|
|
cd_title = "<xsl:value-of select="/cdinfo/cd-title"/>"
|
|
cd_artist = "<xsl:value-of select="/cdinfo/cd-artist"/>"
|
|
cd_discid = "$cddb"
|
|
end
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|