<!--
Stylesheet to convert Pump.io activity streams to RSS.
- Copyright (C) 2013-2014 Antonio Ospite <ao2@ao2.it>
+ Copyright (C) 2013-2018 Antonio Ospite <ao2@ao2.it>
This file is part of tweeper.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl"
- xsl:extension-element-prefixes="php"
exclude-result-prefixes="php">
<xsl:output method="xml" indent="yes"/>
<xsl:value-of select="$item-permalink"/>
</guid>
<pubDate>
- <xsl:value-of select="php:functionString('Tweeper::strToRssDate', .//abbr[@class='easydate']/@title)"/>
+ <xsl:value-of select="php:functionString('Tweeper\Tweeper::strToRssDate', .//abbr[@class='easydate']/@title)"/>
</pubDate>
<description>
<xsl:value-of select="concat($user-name, ': ')"/>
<xsl:variable name="image-thumb-link" select=".//img[contains(@class, 'object-image')]/@src"/>
<xsl:if test="$image-thumb-link">
<xsl:variable name="image-link" select="php:functionString('str_replace', '_thumb', '', $image-thumb-link)"/>
- <xsl:copy-of select="php:functionString('Tweeper::generateEnclosure', $image-link)"/>
+ <xsl:copy-of select="php:functionString('Tweeper\Tweeper::generateEnclosure', $image-link)"/>
</xsl:if>
</xsl:if>
</item>
<xsl:value-of select="$channel-link"/>
</link>
<url>
- <xsl:value-of select="//div[@id='profile-block']/span/img[@class='img-rounded media-object']/@src"/>
+ <xsl:value-of select="//div[@id='profile-block']/span/img[contains(@class, 'img-rounded media-object')]/@src"/>
</url>
</image>
<xsl:apply-templates select="//div[@id='user-content-activities']//ul[@id='major-stream']/li"/>