aboutsummaryrefslogtreecommitdiff
path: root/source/99_result/stream.xsl
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-27 16:28:12 +0200
committerAdrian Kummerlaender2014-07-27 16:28:12 +0200
commitfd62bfc0bae405843d8448c42bdb6379196f1213 (patch)
treec9cd7cafb447bcd9b11adfc0fa32fe77cea2103d /source/99_result/stream.xsl
parent1154d9af6485afc152106dcb44613c5e178d194d (diff)
downloadblog.kummerlaender.eu-fd62bfc0bae405843d8448c42bdb6379196f1213.tar
blog.kummerlaender.eu-fd62bfc0bae405843d8448c42bdb6379196f1213.tar.gz
blog.kummerlaender.eu-fd62bfc0bae405843d8448c42bdb6379196f1213.tar.bz2
blog.kummerlaender.eu-fd62bfc0bae405843d8448c42bdb6379196f1213.tar.lz
blog.kummerlaender.eu-fd62bfc0bae405843d8448c42bdb6379196f1213.tar.xz
blog.kummerlaender.eu-fd62bfc0bae405843d8448c42bdb6379196f1213.tar.zst
blog.kummerlaender.eu-fd62bfc0bae405843d8448c42bdb6379196f1213.zip
Improved article stream title-text template
* returns "Start" for the first page instead of "Page 0" ** this corresponds to the navigation * changed "Start" navigation link in master template * i.e. the index page is named "0", server config will have to be changed accordingly ** thought about generating it as "index" directly ** while this is possible using the XPath evaluation functionality of the target meta attribute the lack of a if-statement in XPath 1.0 would require a very ugly workaround (e.g. the answer to http://stackoverflow.com/questions/971067/is-there-an-if-then-else-statement-in-xpath)
Diffstat (limited to 'source/99_result/stream.xsl')
-rw-r--r--source/99_result/stream.xsl9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/99_result/stream.xsl b/source/99_result/stream.xsl
index 2d28043..603e574 100644
--- a/source/99_result/stream.xsl
+++ b/source/99_result/stream.xsl
@@ -22,7 +22,14 @@
</xsl:variable>
<xsl:template name="title-text">
- <xsl:value-of select="/datasource/page/entry/@index"/>
+ <xsl:choose>
+ <xsl:when test="/datasource/page/entry/@index = 0">
+ Start
+ </xsl:when>
+ <xsl:otherwise>
+ Page <xsl:value-of select="/datasource/page/entry/@index"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template name="get_article">