Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (27 sloc) 903 Bytes
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Written by Jon Wight -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xsl:output method="xml" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="xhtml:html">
<xbel version="1.0">
<xsl:apply-templates/>
</xbel>
</xsl:template>
<xsl:template match="xhtml:dl/xhtml:dd">
<folder>
<title><xsl:value-of select="xhtml:h3/xhtml:a/text()"/></title>
<xsl:apply-templates select="xhtml:dl"/>
</folder>
</xsl:template>
<xsl:template match="xhtml:dd/xhtml:dl/xhtml:dt">
<bookmark>
<xsl:attribute name="href"><xsl:value-of select="xhtml:a/@href"/></xsl:attribute>
<title><xsl:value-of select="xhtml:a/text()"/></title>
<description/>
</bookmark>
</xsl:template>
<xsl:template match="text()"></xsl:template>
</xsl:stylesheet>
Jump to Line
Something went wrong with that request. Please try again.