diff options
author | Adrian Kummerlaender | 2014-10-27 13:17:43 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-27 13:17:43 +0100 |
commit | e4ae586170229de78aaf00963e2f0c49427a9926 (patch) | |
tree | 5e8fdf8fb7acba7e09cdfee941a739ac61fed30e /source/01_raw | |
parent | 7116f8fd112d721fac44b2bafa23023b9f0f9234 (diff) | |
download | Overview-e4ae586170229de78aaf00963e2f0c49427a9926.tar Overview-e4ae586170229de78aaf00963e2f0c49427a9926.tar.gz Overview-e4ae586170229de78aaf00963e2f0c49427a9926.tar.bz2 Overview-e4ae586170229de78aaf00963e2f0c49427a9926.tar.lz Overview-e4ae586170229de78aaf00963e2f0c49427a9926.tar.xz Overview-e4ae586170229de78aaf00963e2f0c49427a9926.tar.zst Overview-e4ae586170229de78aaf00963e2f0c49427a9926.zip |
Implemented latest article view
* the first paragraph of the three latest articles of my blog are now displayed on the overview page
* feed is fetched via `curl` in `01_raw/article_feed.xsl`
** as with all commit feeds the article feed is processed further in the `02_augment` level
** the count of articles to be displayed is defined in `00_content/meta.xml` as `article_count`
* CSS was updated to correctly display the article summary
Diffstat (limited to 'source/01_raw')
-rw-r--r-- | source/01_raw/article_feed.xsl | 23 |
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() <= $root/meta/article_count]"/> +</xsl:template> + +</xsl:stylesheet> |