- <xsl:value-of select="concat($screen-name, ': ')"/>
- <xsl:value-of select="$tweet-text"/>
+ <xsl:value-of select="concat($user-name, ': ')"/>
+ <!--
+ Prepend a space in front of the URLs which are not
+ preceded by an open parenthesis, for aestethic reasons.
+ Also, regex, I know: http://xkcd.com/1171/
+ -->
+ <xsl:variable
+ name="processed-title"
+ select="php:function('preg_replace', '@((?<!\()(?:http[s]?://|pic.twitter.com))@', ' \1', string($item-content))"/>
+ <!-- Also strip and … -->
+ <xsl:value-of select="normalize-space(translate($processed-title, ' …', ''))"/>