1<?xml version="1.0"?>
2<xsl:stylesheet
3        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4        version="1.0">
5
6 <xsl:output encoding="UTF-8"/>
7
8    <xsl:template match="/">
9        <songlist>
10            <xsl:apply-templates select="plist/dict/dict/dict"/>
11        </songlist>
12    </xsl:template>
13
14    <xsl:template match="dict">
15        <song>
16            <xsl:apply-templates select="key"/>
17        </song>
18    </xsl:template>
19
20    <xsl:template match="key">
21        <xsl:element name="{translate(text(), ' ', '_')}">
22            <xsl:value-of select="following-sibling::node()[1]"/>
23        </xsl:element>
24<xsl:text>
25</xsl:text>
26    </xsl:template>
27</xsl:stylesheet>
28