<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
  <opml version="1.0">
    <head>
      <title>RssReader Subscriptions</title> 
      <dateCreated />
      <ownerName /> 
    </head>
    <body>
      <outline title="Subscriptions">
  <xsl:for-each select="rssreader/feeds/item[group != '']">
    <xsl:element name="outline">
      <xsl:attribute name="title" >
        <xsl:value-of select="group"/>
      </xsl:attribute>
      <xsl:element name="outline">
        <xsl:attribute name="title" >
          <xsl:value-of select="title"/>
        </xsl:attribute>
        <xsl:attribute name="xmlUrl" >
          <xsl:value-of select="link" />
        </xsl:attribute>
      </xsl:element>
    </xsl:element>
  </xsl:for-each>
  <xsl:for-each select="rssreader/feeds/item[group = '']">
    <xsl:element name="outline">
      <xsl:attribute name="title" >
        <xsl:value-of select="title"/>
      </xsl:attribute>
      <xsl:attribute name="xmlUrl" >
        <xsl:value-of select="link" />
      </xsl:attribute>
    </xsl:element>
  </xsl:for-each>
    </outline>
    </body>
  </opml>
</xsl:template>
</xsl:stylesheet>
