aboutsummaryrefslogtreecommitdiff
path: root/source/99_result
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-26 23:48:09 +0200
committerAdrian Kummerlaender2014-07-26 23:48:09 +0200
commit27410e9ac4b5617250e4db241989c11ce48c656b (patch)
treec8f728388db268a2e735a17c8e8fb9043f0a30b9 /source/99_result
parentadbe381a2de8b71ee7cb9ca7d383881314ec7847 (diff)
downloadblog.kummerlaender.eu-27410e9ac4b5617250e4db241989c11ce48c656b.tar
blog.kummerlaender.eu-27410e9ac4b5617250e4db241989c11ce48c656b.tar.gz
blog.kummerlaender.eu-27410e9ac4b5617250e4db241989c11ce48c656b.tar.bz2
blog.kummerlaender.eu-27410e9ac4b5617250e4db241989c11ce48c656b.tar.lz
blog.kummerlaender.eu-27410e9ac4b5617250e4db241989c11ce48c656b.tar.xz
blog.kummerlaender.eu-27410e9ac4b5617250e4db241989c11ce48c656b.tar.zst
blog.kummerlaender.eu-27410e9ac4b5617250e4db241989c11ce48c656b.zip
Implemented basic archive page template
* displays articles in descending order grouped by year ** based on the article metadata source implemented in adbe381
Diffstat (limited to 'source/99_result')
-rw-r--r--source/99_result/archive.xsl48
1 files changed, 48 insertions, 0 deletions
diff --git a/source/99_result/archive.xsl b/source/99_result/archive.xsl
new file mode 100644
index 0000000..4a5c671
--- /dev/null
+++ b/source/99_result/archive.xsl
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:output
+ method="xml"
+ omit-xml-declaration="no"
+ encoding="UTF-8"
+ indent="yes"
+/>
+
+<xsl:include href="[utility/master.xsl]"/>
+
+<xsl:variable name="meta">
+ <datasource type="main" mode="full" source="target/03_meta/articles.xml" target="articles"/>
+ <datasource type="support" mode="full" source="target/03_meta/meta.xml" target="meta"/>
+ <target mode="plain" value="archive"/>
+</xsl:variable>
+
+<xsl:template name="title-text">Archive</xsl:template>
+
+<xsl:template match="articles">
+ <div class="left articlelist archivlist">
+ Past articles:
+ <ol>
+ <xsl:apply-templates />
+ </ol>
+ </div>
+</xsl:template>
+
+<xsl:template match="articles/year">
+ <li class="dateitem">
+ <xsl:value-of select="@handle"/>
+ </li>
+ <xsl:apply-templates />
+</xsl:template>
+
+<xsl:template match="year/article">
+ <li>
+ <a href="{$url}/article/{@handle}">
+ <xsl:value-of select="title"/>
+ </a>
+ </li>
+</xsl:template>
+
+</xsl:stylesheet>