aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-10-29 19:20:16 +0100
committerAdrian Kummerlaender2014-10-29 19:20:16 +0100
commit35a244f4d19c2accac5ccb2c553be11150aa25d8 (patch)
treec0462c9b9585a135cdaa8d3b239e12ac8d33ed0f
parentdcd3ce56c442786284c7aba205e4013185af8ba5 (diff)
downloadOverview-35a244f4d19c2accac5ccb2c553be11150aa25d8.tar
Overview-35a244f4d19c2accac5ccb2c553be11150aa25d8.tar.gz
Overview-35a244f4d19c2accac5ccb2c553be11150aa25d8.tar.bz2
Overview-35a244f4d19c2accac5ccb2c553be11150aa25d8.tar.lz
Overview-35a244f4d19c2accac5ccb2c553be11150aa25d8.tar.xz
Overview-35a244f4d19c2accac5ccb2c553be11150aa25d8.tar.zst
Overview-35a244f4d19c2accac5ccb2c553be11150aa25d8.zip
Added ATOM namespace declaration
* commit `71a637` in upstream _InputXSLT_ activated namespace comprehension for `InputXSLT:read-file` and `InputXSLT:external-command` ** this caused both the article and the repository feed queries to fail as they are inside the ATOM namespace
-rw-r--r--source/01_raw/article_feed.xsl3
-rw-r--r--source/01_raw/repository_feeds.xsl3
2 files changed, 4 insertions, 2 deletions
diff --git a/source/01_raw/article_feed.xsl b/source/01_raw/article_feed.xsl
index 6a55925..96f918d 100644
--- a/source/01_raw/article_feed.xsl
+++ b/source/01_raw/article_feed.xsl
@@ -2,6 +2,7 @@
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:InputXSLT="function.inputxslt.application"
exclude-result-prefixes="InputXSLT"
>
@@ -17,7 +18,7 @@
<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/overview/article_count]"/>
+ )/self::command/atom:feed/atom:entry[position() &lt;= $root/meta/overview/article_count]"/>
</xsl:template>
</xsl:stylesheet>
diff --git a/source/01_raw/repository_feeds.xsl b/source/01_raw/repository_feeds.xsl
index 24cc2d8..961c08a 100644
--- a/source/01_raw/repository_feeds.xsl
+++ b/source/01_raw/repository_feeds.xsl
@@ -2,6 +2,7 @@
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:InputXSLT="function.inputxslt.application"
exclude-result-prefixes="InputXSLT"
>
@@ -18,7 +19,7 @@
<entry handle="{@handle}">
<xsl:apply-templates mode="remove_namespace" select="InputXSLT:external-command(
concat('./utility/fetch_feed.sh ', feed/text())
- )/self::command/feed/entry"/>
+ )/self::command/atom:feed/atom:entry"/>
</entry>
</xsl:template>