exclude-result-prefixes="php">
<xsl:param name="generate-enclosure"/>
+ <xsl:param name="show-usernames"/>
<xsl:output method="xml" indent="yes"/>
<item>
<title>
<xsl:variable name="title-length" select="140"/>
- <xsl:variable name="item-content-title" select="normalize-space(concat($screen-name, ': ', $item-content-caption))"/>
+ <xsl:variable name="item-content-title">
+ <xsl:if test="$show-usernames = 1">
+ <xsl:value-of select="concat($screen-name, ': ')"/>
+ </xsl:if>
+ <xsl:value-of select="normalize-space($item-content-caption)"/>
+ </xsl:variable>
<!-- ellipsize, inspired from http://stackoverflow.com/questions/13622338 -->
<xsl:choose>
<xsl:when test="string-length($item-content-title) > $title-length">