<xsl:text>https://twitter.com</xsl:text>
</xsl:variable>
+ <xsl:template match="a[@data-expanded-url]">
+ <xsl:value-of disable-output-escaping="yes" select="php:function('generate_enclosure', string(./@data-expanded-url))"/>
+ </xsl:template>
+
<xsl:variable name="screen-name" select="//div[@class='profile-card-inner']/@data-screen-name"/>
<xsl:template match="//div[@id='timeline']//ol[@id='stream-items-id']//li[@data-item-type='tweet']">
<xsl:copy-of select="$tweet-text/node()"/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
- <xsl:value-of disable-output-escaping="yes" select="php:function('generate_enclosure', string(.//a[@class='twitter-timeline-link']/@data-expanded-url))"/>
+ <xsl:apply-templates select="$tweet-text//a[@data-expanded-url]"/>
</item>
</xsl:template>