<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:qz="http://qzone.qq.com">
  <xsl:output encoding="utf-8" />
  <xsl:template match="/rss">
    <html>
    <head>
    <link href="http://imgcache.qq.com/qzone/rss/rss.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    <h1>
      <xsl:element name="a">
        <xsl:attribute name="href"> <xsl:value-of select="channel/link" /> <xsl:value-of select="channel/description" /> </xsl:attribute>
        <xsl:value-of select="channel/title" />
      </xsl:element>
    </h1>
    <h2> <xsl:value-of select="channel/description" /> </h2>
    <div class="rss_main">
      <xsl:for-each select="channel/item">
        <h3>
          <xsl:element name="a">
            <xsl:attribute name="href"> http://qzone.qq.com/blog/<xsl:value-of select="substring-after(substring-before(link,'.'),'//')"/>-<xsl:value-of select="substring-after(substring-after(substring-after(link,'//'),'/'),'/')"/> </xsl:attribute>
            <xsl:value-of select="title"/>
          </xsl:element>
        </h3>
        <div class="rss_item_date"><xsl:value-of select="pubDate" /></div>
        <div class="rss_content"><xsl:value-of select="description" disable-output-escaping="yes" /> </div>
      </xsl:for-each>
    </div>
    <div class="copyright"> <xsl:value-of select="channel/copyright" /> </div>
    </body>
    </html>
  </xsl:template>
</xsl:stylesheet>
