<xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
  <rss version="2.0">
    <channel>
      <title>
        <xsl:value-of select="xhtml:html/xhtml:head/xhtml:title"/>
      </title>
      <link>
        http://www.pythonware.com/daily/
      </link>
      <description>
        <xsl:value-of select="//xhtml:div[@class='pad']/xhtml:p"/>
      </description>
      <xsl:apply-templates select="//xhtml:p[@class='newsitem']"/>
    </channel>
  </rss>
</xsl:template>

<xsl:template match="//xhtml:p[@class='newsitem']">
  <item>
    <title>
        <xsl:value-of select="xhtml:a[@href]"/>
    </title>
    <link>
        <xsl:value-of select="xhtml:a[@href]/@href"/>
    </link>
    <description>
        <xsl:value-of select="xhtml:i"/>
    </description>
  </item>
</xsl:template>

</xsl:stylesheet>
