1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" id="3" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="ISO-8859-1"/>
<xsl:variable name="eol" select="'
'"/>
<xsl:strip-space elements="*"/>
<xsl:template match="jazz">
<xsl:apply-templates select="piece">
</xsl:apply-templates>
</xsl:template>
<xsl:template match="piece">
<xsl:apply-templates select="recording">
<xsl:sort select="normalize-space(id(@recorded-by)/last-name)"/>
</xsl:apply-templates>
<xsl:apply-templates select="title">
<xsl:sort select="normalize-space(title)"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="recording">
<xsl:apply-templates select="id(@recorded-by)/last-name">
</xsl:apply-templates>
<xsl:value-of select="$eol"/>
</xsl:template>
</xsl:stylesheet> |