Skip to content

Instantly share code, notes, and snippets.

@kanduvisla
Created May 4, 2012 10:11
Show Gist options
  • Select an option

  • Save kanduvisla/2593793 to your computer and use it in GitHub Desktop.

Select an option

Save kanduvisla/2593793 to your computer and use it in GitHub Desktop.
Twitter atom feed
<div class="tweets">
<ul id="tweets_ul">
<xsl:for-each select="twitter-feed/atom:entry">
<li>
<a href="{atom:author/atom:uri}" target="_blank">
<img src="{atom:link[@rel='image']/@href}" title="{substring-before(atom:author/atom:name, ' ')}" alt="tweet van {substring-before(atom:author/atom:name, ' ')}" width="48" height="48" />
</a>
<div>
<strong><a href="{atom:author/atom:uri}" target="_blank"><xsl:value-of select="substring-before(atom:author/atom:name, ' ')" /></a></strong>
<xsl:text> : </xsl:text>
<xsl:call-template name="linkahashify">
<xsl:with-param name="tweet" select="atom:title" />
</xsl:call-template>
<!--<span class="date"><em><xsl:value-of select="@date" /></em> om <em><xsl:value-of select="@time" /></em></span>-->
</div>
</li>
</xsl:for-each>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment