aboutsummaryrefslogtreecommitdiff
path: root/source/03_meta
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-26 13:38:05 +0200
committerAdrian Kummerlaender2014-07-26 13:38:05 +0200
commitb87c8b2a6c9beb57d3959663c0d316207629ab9b (patch)
tree535d26704aa03f4ae62899da7bc9b168606917ea /source/03_meta
parentb22acff1ce34b48249478de40cf7deab4ad78ed6 (diff)
downloadblog.kummerlaender.eu-b87c8b2a6c9beb57d3959663c0d316207629ab9b.tar
blog.kummerlaender.eu-b87c8b2a6c9beb57d3959663c0d316207629ab9b.tar.gz
blog.kummerlaender.eu-b87c8b2a6c9beb57d3959663c0d316207629ab9b.tar.bz2
blog.kummerlaender.eu-b87c8b2a6c9beb57d3959663c0d316207629ab9b.tar.lz
blog.kummerlaender.eu-b87c8b2a6c9beb57d3959663c0d316207629ab9b.tar.xz
blog.kummerlaender.eu-b87c8b2a6c9beb57d3959663c0d316207629ab9b.tar.zst
blog.kummerlaender.eu-b87c8b2a6c9beb57d3959663c0d316207629ab9b.zip
Added meta datasource
* merges the content of the "00_content/meta.xml" file with additional data such as the available tags * simplifies providing a basic datasource to every result transformation * modified master, article and tag page template accordingly
Diffstat (limited to 'source/03_meta')
-rw-r--r--source/03_meta/meta.xsl39
1 files changed, 39 insertions, 0 deletions
diff --git a/source/03_meta/meta.xsl b/source/03_meta/meta.xsl
new file mode 100644
index 0000000..75baa1d
--- /dev/null
+++ b/source/03_meta/meta.xsl
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xalan="http://xml.apache.org/xalan"
+ xmlns:InputXSLT="function.inputxslt.application"
+ exclude-result-prefixes="xalan InputXSLT"
+>
+
+<xsl:output
+ method="xml"
+ omit-xml-declaration="no"
+ encoding="UTF-8"
+ indent="yes"
+/>
+
+<xsl:include href="[utility/datasource.xsl]"/>
+
+<xsl:variable name="meta">
+ <datasource type="main" mode="full" source="source/00_content/meta.xml" target="meta"/>
+ <datasource type="support" mode="full" source="target/02_data/tags.xml" target="tags"/>
+ <target mode="plain" value="meta.xml"/>
+</xsl:variable>
+
+<xsl:template match="meta">
+ <xsl:copy-of select="./*"/>
+</xsl:template>
+
+<xsl:template match="tags">
+ <tags>
+ <xsl:apply-templates />
+ </tags>
+</xsl:template>
+
+<xsl:template match="tags/entry">
+ <entry handle="{@handle}"/>
+</xsl:template>
+
+</xsl:stylesheet>