aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-08-10 21:37:52 +0200
committerAdrian Kummerlaender2014-08-10 21:37:52 +0200
commitc1c409e3e486afdc0fe48484a5fc3ccc553f1aaa (patch)
tree77bb5ccfd3ec575f45e5b704bbd28a97298f7739
parent95937e66c08159bc772c88b730f843b649defcd1 (diff)
downloadblog.kummerlaender.eu-c1c409e3e486afdc0fe48484a5fc3ccc553f1aaa.tar
blog.kummerlaender.eu-c1c409e3e486afdc0fe48484a5fc3ccc553f1aaa.tar.gz
blog.kummerlaender.eu-c1c409e3e486afdc0fe48484a5fc3ccc553f1aaa.tar.bz2
blog.kummerlaender.eu-c1c409e3e486afdc0fe48484a5fc3ccc553f1aaa.tar.lz
blog.kummerlaender.eu-c1c409e3e486afdc0fe48484a5fc3ccc553f1aaa.tar.xz
blog.kummerlaender.eu-c1c409e3e486afdc0fe48484a5fc3ccc553f1aaa.tar.zst
blog.kummerlaender.eu-c1c409e3e486afdc0fe48484a5fc3ccc553f1aaa.zip
Minor improvements to article, stream and master transformation
* wrap text in "xsl:text elements to clean up the output
-rw-r--r--source/99_result/article/article.xsl5
-rw-r--r--source/99_result/stream.xsl14
-rw-r--r--utility/master.xsl3
3 files changed, 12 insertions, 10 deletions
diff --git a/source/99_result/article/article.xsl b/source/99_result/article/article.xsl
index bd7ed14..8d39dc9 100644
--- a/source/99_result/article/article.xsl
+++ b/source/99_result/article/article.xsl
@@ -27,12 +27,13 @@
<xsl:with-param name="date" select="date/full"/>
<xsl:with-param name="format" select="'M x, Y'"/>
</xsl:call-template>
- | <xsl:for-each select="tags/tag">
+ <xsl:text> | </xsl:text>
+ <xsl:for-each select="tags/tag">
<a href="{$url}/tag/{.}">
<xsl:value-of select="."/>
</a>
</xsl:for-each>
- | Adrian Kummerländer
+ <xsl:text> | Adrian Kummerländer</xsl:text>
</p>
<xsl:copy-of select="content/node()"/>
</div>
diff --git a/source/99_result/stream.xsl b/source/99_result/stream.xsl
index 629adea..86785bc 100644
--- a/source/99_result/stream.xsl
+++ b/source/99_result/stream.xsl
@@ -17,10 +17,11 @@
<xsl:template name="title-text">
<xsl:choose>
<xsl:when test="/datasource/page/entry/@index = 0">
- Start
+ <xsl:text>Start</xsl:text>
</xsl:when>
<xsl:otherwise>
- Page <xsl:value-of select="/datasource/page/entry/@index"/>
+ <xsl:text>Page </xsl:text>
+ <xsl:value-of select="/datasource/page/entry/@index"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
@@ -38,12 +39,13 @@
<xsl:with-param name="date" select="$article/date/full"/>
<xsl:with-param name="format" select="'M x, Y'"/>
</xsl:call-template>
- | <xsl:for-each select="$article/tags/tag">
+ <xsl:text> | </xsl:text>
+ <xsl:for-each select="$article/tags/tag">
<a href="{$url}/tag/{.}">
<xsl:value-of select="."/>
</a>
</xsl:for-each>
- | Adrian Kummerländer
+ <xsl:text> | Adrian Kummerländer</xsl:text>
</p>
<xsl:copy-of select="$article/content/*"/>
</xsl:template>
@@ -55,14 +57,14 @@
<xsl:if test="@index > 0">
<span>
<a class="pagination-previous" href="{$url}/{@index - 1}">
- « newer
+ <xsl:text>« newer</xsl:text>
</a>
</span>
</xsl:if>
<xsl:if test="@index &lt; @total - 1">
<span>
<a class="pagination-next" href="{$url}/{@index + 1}">
- older »
+ <xsl:text>older »</xsl:text>
</a>
</span>
</xsl:if>
diff --git a/utility/master.xsl b/utility/master.xsl
index 723aa0c..73105ed 100644
--- a/utility/master.xsl
+++ b/utility/master.xsl
@@ -58,8 +58,7 @@
<xsl:apply-templates />
</div>
<div id="footer_wrap">
- <div class="right taglist">
- Tags:
+ <div class="taglist">
<xsl:call-template name="list_tags"/>
</div>
</div>