From 9a620fc54b03bd70404d604f28f7760df1b642f4 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 27 Feb 2015 15:05:13 +0100 Subject: [PATCH] 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. --- rss_converter_pump.io.xsl | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) 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"/> + + + + -- 2.1.4