aboutsummaryrefslogtreecommitdiff
path: root/source/99_result
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-08-10 21:37:52 +0200
committerAdrian Kummerlaender2014-08-10 21:37:52 +0200
commitc1c409e3e486afdc0fe48484a5fc3ccc553f1aaa (patch)
tree77bb5ccfd3ec575f45e5b704bbd28a97298f7739 /source/99_result
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
Diffstat (limited to 'source/99_result')
-rw-r--r--source/99_result/article/article.xsl5
-rw-r--r--source/99_result/stream.xsl14
2 files changed, 11 insertions, 8 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>