Files: 3fc42e2506afd1ca9d81b85bc123ead5ebcef8b7 / content / wherenext.md
title: "Where Next?" date: 2005-03-31 05:58 status: published description: > Another improvement to the Whatnotbot
tags: Mooquackwooftweetmeow
<p>
I've finally figured out how to make <a href="/brandnewcms" title="I've Got A Brand New Content Management System And I'll Give You The Key">the Mooquackwhatnotbot</a> include next- and previous-entry links in each entry's page. The solution involves defining an <abbr title="Extensible Stylesheet Language">XSL</abbr> variable at the point where the link appears, and referring to the previous/next entry using the current entry as the axis; evidently I didn't think of this the first time round.
</p>
<p>
I included the “Find this entry in the archive by date” link as a substitute for next and previous links when I found the latter too tricky; it's staying because: it provides a nice chronological overview of the entry; the archive is primarily ordered chronologically; and it's doing no harm.
</p>
<p>
Also, because the solution uses <code><xsl:if></code>s anyway, I get the problem of cockups on the first and last entry fixed for free.
</p>
<p>
I originally planned to put the next and previous links at the bottom of the article, in the main content area. Looking at it now I think it makes more sense for them to go in the Blurb, with the links to the archive, thus leaving the content area for the content.
</p>
<p>
In loosely-related news, the address of the Atom feed is now tidier – I already had a <a href="http://purl.org"><acronym title="Persistent Uniform Resource Locator">PURL</acronym></a> at <a href="http://purl.org/mooquackwooftweetmeow/atom">http://purl.org/mooquackwooftweetmeow/atom</a> pointing to <a href="http://purl.org/mooquackwooftweetmeow/atom.xml">http://purl.org/mooquackwooftweetmeow/atom.xml</a>, which itself uses a PURL. So there was absolutely no reason not to drop the <code>.xml</code> to match <a href="/nowslightlylesscool" title="Now Slightly Less Cool">the entries' new <abbr title="Uniform Resource Identifiers">URIs</abbr></a>.
</p>
Built with git-ssb-web