aboutsummaryrefslogtreecommitdiff
path: root/source/01_raw
diff options
context:
space:
mode:
Diffstat (limited to 'source/01_raw')
-rw-r--r--source/01_raw/article_feed.xsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/01_raw/article_feed.xsl b/source/01_raw/article_feed.xsl
new file mode 100644
index 0000000..ab652b7
--- /dev/null
+++ b/source/01_raw/article_feed.xsl
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:InputXSLT="function.inputxslt.application"
+ exclude-result-prefixes="InputXSLT"
+>
+
+<xsl:include href="[utility/datasource.xsl]"/>
+<xsl:include href="[utility/remove_namespace.xsl]"/>
+
+<xsl:variable name="meta">
+ <datasource type="main" mode="full" source="00_content/meta.xml" target="meta"/>
+ <target mode="plain" value="article_feed.xml"/>
+</xsl:variable>
+
+<xsl:template match="meta">
+ <xsl:apply-templates mode="remove_namespace" select="InputXSLT:external-command(
+ 'curl http://blog.kummerlaender.eu/atom.xml'
+ )/self::command/feed/entry[position() &lt;= $root/meta/article_count]"/>
+</xsl:template>
+
+</xsl:stylesheet>