diff options
author | Adrian Kummerlaender | 2019-04-13 17:37:10 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2019-04-13 17:37:10 +0200 |
commit | 714a92a163645bb436b1e8f4c56a818656c35f8a (patch) | |
tree | 6309e2623062af6a32f6149b39607a0904056681 /source/02_augment | |
parent | 8505560ec12b96a3bcc9369352bf85faf3b9698c (diff) | |
download | Overview-714a92a163645bb436b1e8f4c56a818656c35f8a.tar Overview-714a92a163645bb436b1e8f4c56a818656c35f8a.tar.gz Overview-714a92a163645bb436b1e8f4c56a818656c35f8a.tar.bz2 Overview-714a92a163645bb436b1e8f4c56a818656c35f8a.tar.lz Overview-714a92a163645bb436b1e8f4c56a818656c35f8a.tar.xz Overview-714a92a163645bb436b1e8f4c56a818656c35f8a.tar.zst Overview-714a92a163645bb436b1e8f4c56a818656c35f8a.zip |
Remove newly extracted features
i.e. Overview is now a mostly pure aggregator again.
The new commit / blip feature is now maintained in `blip.kummerlaender.eu`.
Diffstat (limited to 'source/02_augment')
-rw-r--r-- | source/02_augment/articles.xsl | 2 | ||||
-rw-r--r-- | source/02_augment/blips.xsl | 50 |
2 files changed, 51 insertions, 1 deletions
diff --git a/source/02_augment/articles.xsl b/source/02_augment/articles.xsl index e3eaf6f..771c0f8 100644 --- a/source/02_augment/articles.xsl +++ b/source/02_augment/articles.xsl @@ -7,7 +7,7 @@ <xsl:include href="[utility/datasource.xsl]"/> <xsl:variable name="meta"> - <datasource type="main" mode="full" source="01_raw/article_feed.xml" target="articles"/> + <datasource type="main" mode="full" source="01_raw/blog_feed.xml" target="articles"/> <target mode="plain" value="articles.xml"/> </xsl:variable> diff --git a/source/02_augment/blips.xsl b/source/02_augment/blips.xsl new file mode 100644 index 0000000..f3a01b4 --- /dev/null +++ b/source/02_augment/blips.xsl @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +> + +<xsl:include href="[utility/datasource.xsl]"/> + +<xsl:variable name="meta"> + <datasource type="main" mode="full" source="01_raw/blip_feed.xml" target="blips"/> + <target mode="plain" value="blips.xml"/> +</xsl:variable> + +<xsl:template match="id" mode="blip"/> + +<xsl:template match="author" mode="blip"> + <xsl:copy> + <xsl:value-of select="name"/> + </xsl:copy> +</xsl:template> + +<xsl:template match="updated" mode="blip"> + <date> + <xsl:value-of select="substring(., 0, 11)"/> + </date> +</xsl:template> + +<xsl:template match="link" mode="blip"> + <link> + <xsl:value-of select="@href"/> + </link> +</xsl:template> + +<xsl:template match="content[@type = 'xhtml']" mode="blip"> + <content> + <xsl:apply-templates select="node()" mode="blip"/> + </content> +</xsl:template> + +<xsl:template match="@* | node()" mode="blip"> + <xsl:copy> + <xsl:apply-templates select="@* | node()" mode="blip"/> + </xsl:copy> +</xsl:template> + +<xsl:template match="blips"> + <xsl:apply-templates select="entry" mode="blip"/> +</xsl:template> + +</xsl:stylesheet> |