<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/">
<opml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<head>
<title>Generated by feedreader2opml</title>
</head>
<body>
<xsl:for-each select="feeds/item">
<outline type="rss">
<xsl:attribute name="title">
<xsl:value-of select="title"/>
</xsl:attribute>
<xsl:attribute name="description">
<xsl:value-of select="description"/>
</xsl:attribute>
<xsl:variable name="protocol">
<xsl:value-of select="substring(link,1,7)"/>
</xsl:variable>
<xsl:choose>
	<xsl:when test="$protocol='http://'">
		<xsl:attribute name="xmlUrl">
		<xsl:value-of select="link"/>
		</xsl:attribute>
	</xsl:when>
	<xsl:otherwise>
		<xsl:attribute name="xmlUrl">
		<xsl:value-of select="concat('http://',link)"/>
		</xsl:attribute>
	</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="htmlUrl">
<xsl:value-of select="htmlurl"/>
</xsl:attribute>
</outline>
</xsl:for-each>
</body>
</opml>
</xsl:template>
</xsl:stylesheet>