rss_converter_twitter.com.xsl: use concat() more
authorAntonio Ospite <ospite@studenti.unina.it>
Sun, 28 Jul 2013 20:28:55 +0000 (22:28 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sun, 28 Jul 2013 20:28:55 +0000 (22:28 +0200)
I think it is a little more readable, and it surely takes less
characters.

rss_converter_twitter.com.xsl

index 45e148d..5a57c8f 100644 (file)
         <xsl:variable name="tweet-text" select=".//p[@class='js-tweet-text tweet-text']"/>
         <item>
             <title>
         <xsl:variable name="tweet-text" select=".//p[@class='js-tweet-text tweet-text']"/>
         <item>
             <title>
-                <xsl:value-of select="concat($screen-name, ': ')"/>
-                <xsl:value-of select="$tweet-text"/>
+                <xsl:value-of select="concat($screen-name, ': ', $tweet-text)"/>
             </title>
             <link>
             </title>
             <link>
-                <xsl:value-of select="$twitterBaseURL"/><xsl:value-of select=".//a[@class='details with-icn js-details']/@href"/>
+                <xsl:value-of select="concat($twitterBaseURL, .//a[@class='details with-icn js-details']/@href)"/>
             </link>
             <pubDate>
                 <xsl:value-of select="php:functionString('epoch_to_gmdate', .//small[@class='time']//span/@data-time)"/>
             </link>
             <pubDate>
                 <xsl:value-of select="php:functionString('epoch_to_gmdate', .//small[@class='time']//span/@data-time)"/>