aboutsummaryrefslogtreecommitdiff
path: root/source/03_meta
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/03_meta
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/03_meta')
-rw-r--r--source/03_meta/tags.xsl14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/03_meta/tags.xsl b/source/03_meta/tags.xsl
index f51f91a..3e11c8b 100644
--- a/source/03_meta/tags.xsl
+++ b/source/03_meta/tags.xsl
@@ -17,7 +17,7 @@
<xsl:include href="[utility/datasource.xsl]"/>
<xsl:variable name="meta">
- <datasource type="main" mode="full" source="target/01_files/source.xml" target="files"/>
+ <datasource type="main" mode="full" source="target/02_data/tags.xml" target="tags"/>
<datasource type="support" mode="full" source="target/02_data/articles.xml" target="articles"/>
<target mode="plain" value="tags.xml"/>
</xsl:variable>
@@ -28,18 +28,16 @@
<xsl:copy-of select="$root/articles/entry[@handle = $handle]/*[self::title | self::date]"/>
</xsl:template>
-<xsl:template match="files/tags/*">
- <entry handle="{name()}">
+<xsl:template match="tags/entry">
+ <entry handle="{@handle}">
<xsl:apply-templates />
</entry>
</xsl:template>
-<xsl:template match="tags/*/file[./extension = '.md']">
- <xsl:variable name="handle" select="substring(./name, 12, string-length(./name))"/>
-
- <article handle="{$handle}">
+<xsl:template match="tags/*/article">
+ <article handle="{@handle}">
<xsl:call-template name="get_article_data">
- <xsl:with-param name="handle" select="$handle"/>
+ <xsl:with-param name="handle" select="@handle"/>
</xsl:call-template>
</article>
</xsl:template>