bookmarks.xsl.in (2370B)
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xml:space="preserve">
- <xsl:import href="templates/en/nav.xsl" />
- <xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
- <xsl:template match="/xbel"><xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
- <html xml:lang="en" lang="en">
- <head>
- <xi:include href="templates/head.xml" parse="xml" xpointer="xpointer(/xml/*)"/>
- <title>Bookmarks - lanodan's cyber-home</title>
- </head>
- <body>
- <xsl:call-template name="nav"/>
- <main>
- <h1>Bookmarks</h1>
- <p>
- This is generated from <a href="/bookmarks.xbel">/bookmarks.xbel</a>, a standard-compliant <a href="http://pyxml.sourceforge.net/topics/xbel/">XBEL</a> file, which you can process and import in some browsers. (XSLT file used for it: <a href="/bookmarks.xsl">/bookmarks.xsl</a>).<br />
- An Atom syndication feed is also available at <a rel="alternate" type="application/atom+xml" href="/bookmarks.atom">/bookmarks.atom</a> if you want to get updates about new entries.<br />
- It currently contains <xsl:number value="count(//bookmark)"/> links organised in <xsl:number value="count(//folder)"/> folders.
- </p>
- <details id="toc" open="">
- <summary>Table of Contents <a href="#toc">§</a></summary>
- <ul><xsl:for-each select="/xbel/folder">
- <li><a href="#{title}"><xsl:value-of select="title" /></a></li></xsl:for-each>
- </ul>
- </details>
- <xsl:apply-templates select="/xbel/folder"/>
- <section id="Misc">
- <h2>Misc <a href="#Misc">§</a></h2>
- <dl><xsl:apply-templates select="/xbel/bookmark"/>
- </dl>
- </section>
- </main>
- <xi:include href="templates/en/footer.shtml" parse="xml"/>
- </body>
- </html></xsl:template>
- <xsl:template match="folder">
- <section id="{title}">
- <h2><xsl:value-of select="title" /> <a href="#{title}">§</a></h2>
- <xsl:if test="desc"><p><xsl:value-of select="desc" /></p>
- </xsl:if><dl><xsl:apply-templates select="bookmark"/>
- </dl>
- </section></xsl:template>
- <xsl:template match="bookmark">
- <dt><a rel="external noreferrer" href="{@href}"><xsl:value-of select="title" /></a></dt><xsl:if test="desc"><dd><xsl:value-of select="desc" /></dd></xsl:if></xsl:template>
- </xsl:stylesheet>