aboutsummaryrefslogtreecommitdiff
path: root/source/02_data
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-26 09:59:58 +0200
committerAdrian Kummerlaender2014-07-26 09:59:58 +0200
commit04dd5fb877a3cc13eff4868018e518f479a34bda (patch)
tree89ab52fbf7af9ef66accbcd2c6224751745839b2 /source/02_data
parentc0cd6ee34a0ed1290acdf6058d1dea8437a8dcff (diff)
downloadblog.kummerlaender.eu-04dd5fb877a3cc13eff4868018e518f479a34bda.tar
blog.kummerlaender.eu-04dd5fb877a3cc13eff4868018e518f479a34bda.tar.gz
blog.kummerlaender.eu-04dd5fb877a3cc13eff4868018e518f479a34bda.tar.bz2
blog.kummerlaender.eu-04dd5fb877a3cc13eff4868018e518f479a34bda.tar.lz
blog.kummerlaender.eu-04dd5fb877a3cc13eff4868018e518f479a34bda.tar.xz
blog.kummerlaender.eu-04dd5fb877a3cc13eff4868018e518f479a34bda.tar.zst
blog.kummerlaender.eu-04dd5fb877a3cc13eff4868018e518f479a34bda.zip
Added unaugmented tags datasource
* contains tags and their articles but no further article data * the unaugmented tags datasource is merged with article data on the metadata level
Diffstat (limited to 'source/02_data')
-rw-r--r--source/02_data/tags.xsl34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/02_data/tags.xsl b/source/02_data/tags.xsl
new file mode 100644
index 0000000..f5d1627
--- /dev/null
+++ b/source/02_data/tags.xsl
@@ -0,0 +1,34 @@
+<?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="target/01_files/source.xml" target="files"/>
+ <target mode="plain" value="tags.xml"/>
+</xsl:variable>
+
+<xsl:template match="files/tags/*">
+ <entry handle="{name()}">
+ <xsl:apply-templates />
+ </entry>
+</xsl:template>
+
+<xsl:template match="tags/*/file[./extension = '.md']">
+ <article handle="{substring(./name, 12, string-length(./name))}"/>
+</xsl:template>
+
+</xsl:stylesheet>