rss_converter_twitter.com.xsl: rename twitterBaseURL to BaseURL
authorAntonio Ospite <ao2@ao2.it>
Fri, 27 Feb 2015 12:15:59 +0000 (13:15 +0100)
committerAntonio Ospite <ao2@ao2.it>
Fri, 27 Feb 2015 12:15:59 +0000 (13:15 +0100)
This way the same notation is used in all the stylesheets.

rss_converter_twitter.com.xsl

index 76937e4..82a16a7 100644 (file)
@@ -28,7 +28,7 @@
 
     <xsl:output method="xml" indent="yes"/>
 
-    <xsl:variable name="twitterBaseURL">
+    <xsl:variable name="BaseURL">
         <xsl:text>https://twitter.com</xsl:text>
     </xsl:variable>
 
@@ -41,7 +41,7 @@
     <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)"/>
@@ -73,7 +73,7 @@
         <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>