<?xml version="1.0" encoding="UTF-8"?>
<!--Raymond Yee (yee@uclink.berkeley.edu) , Interactive University, University of California, Berkeley 2003-02 -->
<!-- trick from http://www.mycgiserver.com/~~lisali/papers/paper.htm -->
<!DOCTYPE stylesheet [
<!ENTITY nbsp "<xsl:text disable-output-escaping="yes"
xmlns:xsl= "http://www.w3.org/1999/XSL/Transform "
>&nbsp;</xsl:text>"> <!-- white space in XSL -->
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!--xsl:output hint from http://www.objectsbydesign.com/projects/xslt/xhtml.html#faq1 to generate XHTML -->
<xsl:output method="xml" indent="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" media-type="text/html"/>
<!-- root template -->
<xsl:template match="opml">
<html><body>
<xsl:apply-templates select="body" />
</body></html>
</xsl:template>
<!--body -->
<xsl:template match="body">
<xsl:apply-templates select="//outline" />
</xsl:template>
<!--outline-->
<xsl:template match="outline">
<xsl:choose>
<xsl:when test="@url">
<a> <xsl:attribute name="href"><xsl:value-of select="normalize-space(@url)"/></xsl:attribute><xsl:value-of select="@text"/></a><br/>
</xsl:when>
<xsl:otherwise>
<b><xsl:value-of select="@text"/></b><br/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
