From 299dbbb58f9b6c6c85563bba4d1e43ae514a7949 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 9 Dec 2014 19:03:28 +0100 Subject: Replaced function-like data resolution with template applications * e.g. article and tag support data is now fetched through direct _XPath_ template applications ** this required the introduction of a special `resolve` mode to prevent interaction between support and main content resolution ** in most cases arguments had to be wrapped inside helper constants to enable selection of e.g. article support data via the `@handle` attribute using the current elements `@handle` attribute * analogously to the recent changes in _StaticXSLT_ this commit aims to improve the XSLT code style used in generating this static website --- source/02_meta/articles.xsl | 34 +++++++++++++++------------------- source/02_meta/categories.xsl | 20 ++++++++------------ source/02_meta/tags.xsl | 28 ++++++++++++---------------- 3 files changed, 35 insertions(+), 47 deletions(-) (limited to 'source/02_meta') diff --git a/source/02_meta/articles.xsl b/source/02_meta/articles.xsl index 1a8b8fa..f91ff1e 100644 --- a/source/02_meta/articles.xsl +++ b/source/02_meta/articles.xsl @@ -11,31 +11,27 @@ - + + + +
+ + <xsl:value-of select="title"/> + + + + +
+
+ + - - - + - - - - -
- - <xsl:value-of select="title"/> - - - - -
-
-
- diff --git a/source/02_meta/categories.xsl b/source/02_meta/categories.xsl index 1a06aa1..ea8593b 100644 --- a/source/02_meta/categories.xsl +++ b/source/02_meta/categories.xsl @@ -15,17 +15,13 @@ - - - - - - + + - <xsl:value-of select="$page/title"/> + <xsl:value-of select="title"/> - - + + @@ -37,9 +33,9 @@ - - - + + + diff --git a/source/02_meta/tags.xsl b/source/02_meta/tags.xsl index 20b1f10..3c95932 100644 --- a/source/02_meta/tags.xsl +++ b/source/02_meta/tags.xsl @@ -12,17 +12,15 @@ - - - - - - - <xsl:value-of select="$article/self::title"/> - - - - + +
+ + <xsl:value-of select="title"/> + + + + +
@@ -32,11 +30,9 @@ -
- - - -
+ + +
-- cgit v1.2.3