Updated links

Using my nifty XSLT posted below, I’ve updated my sidebar links to reflect what I’m actually reading these days. I just pruned down my subscriptions: I had like 30 cycling blogs that were good, but time consuming. (How many pictures of Chinese girls on bikes do you really need to see in your week?)

Not all of those I read are below and to the right for other reasons.

Also, if anyone knows of any good links I might like or blogs of our friends, send them to me.

XSLT for OPML to XHTML List

The following some XSLT sufficient to transform an OPML file into a list, ready for you to edit and post:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  exclude-result-prefixes="xhtml xsl xs">

    <xsl:template match="body">
        <ol><xsl:text>
</xsl:text>
            <xsl:for-each select="outline">
                <li> <a href="{@htmlUrl}" ><strong><xsl:value-of select="@text" /></strong></a> - your text </li><xsl:text>
</xsl:text>
            </xsl:for-each>
        </ol>
    </xsl:template>
</xsl:stylesheet>

It isn’t 100% complete, but will get you a list of the form:

<ol>
    <li><a href="URL"><strong>Title</strong></a> - your text</li>
</ol>

In a sane interface to an operating system, you can run the following to produce transformed output, given the XSL above and an OPML file: