I was bored last night so I wrote an xslt that converts my exported opml blog roll to the Radio navigator format. The navigator format is what is used to have links on the right side of your Radio page, and most news aggreators export in the opml format. It’s a pretty trivial xslt, but it can come in handy if you use Radio.
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:attribute-set name="set"> <xsl:attribute name="name"><xsl:value-of select="current()/@title"/></xsl:attribute> <xsl:attribute name="pagename"><xsl:value-of select="current()/@htmlUrl"/></xsl:attribute> </xsl:attribute-set> <xsl:template match="/"> <xsl:element name="navigator"> <xsl:for-each select="/opml/body/outline"> <xsl:element name="item" use-attribute-sets="set"/> </xsl:for-each> </xsl:element> </xsl:template> </xsl:stylesheet>
7:30:13 PM
|