This way the same notation is used in all the stylesheets.
<xsl:output method="xml" indent="yes"/>
<xsl:output method="xml" indent="yes"/>
- <xsl:variable name="twitterBaseURL">
+ <xsl:variable name="BaseURL">
<xsl:text>https://twitter.com</xsl:text>
</xsl:variable>
<xsl:text>https://twitter.com</xsl:text>
</xsl:variable>
<xsl:template match="//*[@data-item-type='tweet']">
<xsl:variable name="user-name" select=".//div[contains(@class, 'js-stream-tweet')]/@data-screen-name"/>
<xsl:variable name="tweet-text" select=".//p[contains(@class, 'js-tweet-text')]"/>
<xsl:template match="//*[@data-item-type='tweet']">
<xsl:variable name="user-name" select=".//div[contains(@class, 'js-stream-tweet')]/@data-screen-name"/>
<xsl:variable name="tweet-text" select=".//p[contains(@class, 'js-tweet-text')]"/>
- <xsl:variable name="tweet-permalink" select="concat($twitterBaseURL, .//a[contains(@class, 'js-permalink')]/@href)"/>
+ <xsl:variable name="tweet-permalink" select="concat($BaseURL, .//a[contains(@class, 'js-permalink')]/@href)"/>
<item>
<title>
<xsl:value-of select="concat($user-name, ': ', $tweet-text)"/>
<item>
<title>
<xsl:value-of select="concat($user-name, ': ', $tweet-text)"/>
<xsl:variable name="channel-link" select="//link[@rel='canonical']/@href"/>
<rss version="2.0">
<xsl:variable name="channel-link" select="//link[@rel='canonical']/@href"/>
<rss version="2.0">
- <xsl:attribute name="xml:base"><xsl:value-of select="$twitterBaseURL" /></xsl:attribute>
+ <xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
<channel>
<generator>Tweeper</generator>
<title>
<channel>
<generator>Tweeper</generator>
<title>