<!--

	Converts del.icio.us RSS to minimal OPML for "Reading Lists"
	
Use as you like, hope it doesn't break anything.
Danny Ayers, 2006
http://dannyayers.com	
-->
<xsl:transform 
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:rss="http://purl.org/rss/1.0/"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
 exclude-result-prefixes="xsl rss rdf">

  <xsl:preserve-space elements="*" />
  <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" encoding="utf-8"/>
 
<xsl:template match="rdf:RDF">
  <opml version="1.0">
	<head>
	  <title><xsl:value-of select="rss:channel/rss:title/text()"/></title>
	</head>
	<body>
        <!--<xsl:for-each select="rss:item[position() &lt;6]">-->
	  <xsl:for-each select="rss:item">
          <outline  text="{rss:title}" url="{./@rdf:about}">
              <outline text="{rss:description}" />
          </outline>
	  </xsl:for-each>
	</body>
  </opml>
</xsl:template>

<xsl:template match="text()" />

</xsl:transform>
