Instagram has reintroduced serving the image caption in the json data,
so use it; it is way nicer than the stats tweeper was showing before.
<xsl:template match="//media/nodes/XML_Serializer_Tag">
<xsl:variable name="item-content-image" select="./display_src"/>
<xsl:template match="//media/nodes/XML_Serializer_Tag">
<xsl:variable name="item-content-image" select="./display_src"/>
+ <xsl:variable name="item-content-caption" select="./caption"/>
<xsl:variable name="item-permalink" select="concat($BaseURL, '/p/', ./code, '/')"/>
<xsl:variable name="item-permalink" select="concat($BaseURL, '/p/', ./code, '/')"/>
- <xsl:variable name="item-content-title" select="concat($user-name, ': ', $item-permalink, ', comments: ', ./comments/count, ', likes: ', ./likes/count)"/>
- <xsl:value-of select="$item-content-title"/>
+ <xsl:value-of select="$item-content-caption"/>
</title>
<link>
<xsl:value-of select="$item-permalink"/>
</title>
<link>
<xsl:value-of select="$item-permalink"/>
</pubDate>
<description>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
</pubDate>
<description>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
- <p><xsl:value-of select="$item-content-title"/></p><br />
+ <p><xsl:value-of select="$item-content-caption"/></p><br />
<a href="{$item-permalink}"><img src="{$item-content-image}" /></a>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<a href="{$item-permalink}"><img src="{$item-content-image}" /></a>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>