projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rss_converter_twitter.com.xsl: rename twitterBaseURL to BaseURL
[tweeper.git]
/
rss_converter_pump.io.xsl
diff --git
a/rss_converter_pump.io.xsl
b/rss_converter_pump.io.xsl
index
6b05d0c
..
94b083b
100644
(file)
--- a/
rss_converter_pump.io.xsl
+++ b/
rss_converter_pump.io.xsl
@@
-1,7
+1,7
@@
<!--
Stylesheet to convert Pump.io activity streams to RSS.
<!--
Stylesheet to convert Pump.io activity streams to RSS.
- Copyright (C) 2013
Antonio Ospite <ospite@studenti.unina
.it>
+ Copyright (C) 2013
-2014 Antonio Ospite <ao2@ao2
.it>
This file is part of tweeper.
This file is part of tweeper.
@@
-26,6
+26,9
@@
<xsl:output method="xml" indent="yes"/>
<xsl:output method="xml" indent="yes"/>
+ <xsl:variable name="domain-name" select="substring-after(//div[@id='profile-block']/@data-profile-id, '@')"/>
+ <xsl:variable name="BaseURL" select="concat('https://', $domain-name)"/>
+
<xsl:variable name="user-name" select="substring-after(//div[@id='profile-block']/@data-profile-id, ':')"/>
<xsl:template match="//div[@id='user-content-activities']//ul[@id='major-stream']/li">
<xsl:variable name="user-name" select="substring-after(//div[@id='profile-block']/@data-profile-id, ':')"/>
<xsl:template match="//div[@id='user-content-activities']//ul[@id='major-stream']/li">
@@
-52,6
+55,7
@@
<xsl:template match="/">
<rss version="2.0">
<xsl:template match="/">
<rss version="2.0">
+ <xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
<channel>
<generator>Tweeper</generator>
<title>
<channel>
<generator>Tweeper</generator>
<title>