From: Antonio Ospite Date: Fri, 27 Feb 2015 14:05:13 +0000 (+0100) Subject: rss_converter_pump.io.xsl: make the feed validate with feedvalidator.org X-Git-Tag: v0.4~40 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/9a620fc54b03bd70404d604f28f7760df1b642f4?hp=a2f080251d11941e8585e5a583919baf8c9a50f9 rss_converter_pump.io.xsl: make the feed validate with feedvalidator.org Make the pump.io feed validate with http://feedvalidator.org and also improve compatibility by providing a guid and by excluding the weird xmlns:php namespace in the output. --- diff --git a/rss_converter_pump.io.xsl b/rss_converter_pump.io.xsl index 94b083b..ed99713 100644 --- a/rss_converter_pump.io.xsl +++ b/rss_converter_pump.io.xsl @@ -22,7 +22,8 @@ + xsl:extension-element-prefixes="php" + exclude-result-prefixes="php"> @@ -32,42 +33,54 @@ - + + - <xsl:value-of select="concat($user-name, ': ', normalize-space($activity-text))"/> + <xsl:value-of select="concat($user-name, ': ', normalize-space($item-content))"/> - + + + + <![CDATA[ - + ]]> + + Tweeper - <xsl:value-of select="concat(substring-after($user-name, '@'), ' / ', substring-before($user-name, '@'))"/> + <xsl:value-of select="$channel-title"/> - + + + <xsl:value-of select="$channel-title"/> + + + +