aboutsummaryrefslogtreecommitdiff
path: root/source/03_result
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-20 20:02:55 +0200
committerAdrian Kummerlaender2014-07-20 20:02:55 +0200
commit6265f7f4be3a54a8a27330918c59ef16da458124 (patch)
treeb22f1828905fc8822eb95e74e5b883123690441c /source/03_result
parente15b3bc2c4036363c5d9b9fd7e62d224920b5514 (diff)
downloadblog.kummerlaender.eu-6265f7f4be3a54a8a27330918c59ef16da458124.tar
blog.kummerlaender.eu-6265f7f4be3a54a8a27330918c59ef16da458124.tar.gz
blog.kummerlaender.eu-6265f7f4be3a54a8a27330918c59ef16da458124.tar.bz2
blog.kummerlaender.eu-6265f7f4be3a54a8a27330918c59ef16da458124.tar.lz
blog.kummerlaender.eu-6265f7f4be3a54a8a27330918c59ef16da458124.tar.xz
blog.kummerlaender.eu-6265f7f4be3a54a8a27330918c59ef16da458124.tar.zst
blog.kummerlaender.eu-6265f7f4be3a54a8a27330918c59ef16da458124.zip
Split page datasource entry into title and content
* 'h1' node is used as title and any other node as content * modified result page transformation accordingly
Diffstat (limited to 'source/03_result')
-rw-r--r--source/03_result/page.xsl5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/03_result/page.xsl b/source/03_result/page.xsl
index f6113f3..e3839a7 100644
--- a/source/03_result/page.xsl
+++ b/source/03_result/page.xsl
@@ -23,12 +23,13 @@
</xsl:variable>
<xsl:template name="title-text">
- <xsl:value-of select="/datasource/page/entry/h1"/>
+ <xsl:value-of select="/datasource/page/entry/title"/>
</xsl:template>
<xsl:template match="page/entry">
<div class="last article">
- <xsl:copy-of select="./*"/>
+ <h3><xsl:value-of select="./title"/></h3>
+ <xsl:copy-of select="./content/*"/>
</div>
</xsl:template>