<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    exclude-result-prefixes="xhtml">

    <xsl:template match="/">
      <xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="rss2html.xsl"</xsl:processing-instruction>
      <rss version="2.0">
        <channel>
          <title>IFPI News</title>
          <link>http://www.ifpi.org/content/section_news/</link>
          <description>Representing the recording industry worldwide</description>
          <language>en-gb</language>
          <!--lastBuildDate></lastBuildDate-->
          <copyright>Copyright: (C) IFPI</copyright>
          <xsl:apply-templates select="//xhtml:div[@class='channel']/xhtml:div[@class='item']" />
        </channel>
      </rss>
    </xsl:template>

    <xsl:template match="xhtml:div[@class='item']">
          <item>
            <title><xsl:value-of select="normalize-space(xhtml:div[@class='title'][1])" /></title>
            <link>http://www.ifpi.org<xsl:value-of select="descendant::xhtml:a[1]/@href" /></link>
            <guid isPermaLink="true">http://www.ifpi.org<xsl:value-of select="descendant::xhtml:a[1]/@href" /></guid>
          </item>
    </xsl:template>

    <xsl:template match="xhtml:div[@class='item'][position() &gt; 20]">
    </xsl:template>

</xsl:stylesheet>

