<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns="http://www.w3.org/1999/xhtml">
  <xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" method="xml" omit-xml-declaration="yes" indent="yes"/>

<xsl:template match="xbel">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
		<head>
		<title><xsl:value-of select="title"/> bookmarks | splintered.co.uk</title>
		<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf8" />
		<meta name="author" content="Patrick H. Lauke" />
		<meta name="description" content="splintered - random sparks of creative insight / the portfolio and experimental playground of patrick h. lauke aka redux / shared firefox bookmarks" />
		<link rel="stylesheet" href="style.css" type="text/css" />
		<link rel="shortcut icon" href="/images/favicon.png" type="image/png" />
		<link rel="alternate" type="application/atom+xml" href="/feeds/news.xml" title="news" />
<link rel="alternate" type="application/atom+xml" href="/feeds/portfolio.xml" title="portfolio" />
<link rel="alternate" type="application/atom+xml" href="/feeds/experiments.xml" title="experiments" />
		</head>
		<body>
		<h1>bookmarks</h1>
		<p>For an explanation, see the related <a href="/experiments/44/">experiment</a>. You can also <a href="./">access the manipulated <acronym title="eXtensible Markup Language">XML</acronym> file</a>, after the server-side <acronym title="eXtensible Stylesheet Language Transformation">XSLT</acronym> and incorporation into this site's template.</p>
			<ul id="bookmarklist">
			<xsl:apply-templates select="bookmark|folder"/>
			</ul>
		</body>
	</html>
</xsl:template>

<xsl:template match="bookmark">
	<li class="bookmark">
		<a>
		<xsl:attribute name="href">
			<xsl:value-of select="@href" />
		</xsl:attribute>
		<xsl:apply-templates select="desc"/>
		<xsl:value-of select="title" />
		</a>
	</li>
</xsl:template>

<xsl:template match="title">
		<xsl:value-of select="node()" />
</xsl:template>

<xsl:template match="desc">
		<xsl:attribute name="title">
			<xsl:value-of select="node()" />
		</xsl:attribute>
</xsl:template>

<xsl:template match="folder">
	<li class="folder">
		<xsl:apply-templates select="desc"/>
		<span class="foldertitle"><xsl:apply-templates select="title"/></span>
		<ul class="subfolder">
			<xsl:apply-templates select="bookmark|folder"/>
		</ul>
	</li>
</xsl:template>

</xsl:stylesheet>