This make the generated XML have proper indentation in case the
<enclosure/> element gets added.
</xsl:variable>
<xsl:template match="display_src">
</xsl:variable>
<xsl:template match="display_src">
- <xsl:value-of disable-output-escaping="yes" select="php:function('Tweeper::generateEnclosure', string(text()))"/>
+ <xsl:copy-of select="php:function('Tweeper::generateEnclosure', string(text()))"/>
</xsl:template>
<xsl:variable name="user-name" select="//ProfilePage/user/username"/>
</xsl:template>
<xsl:variable name="user-name" select="//ProfilePage/user/username"/>
</xsl:variable>
<xsl:template match="a[@data-expanded-url]">
</xsl:variable>
<xsl:template match="a[@data-expanded-url]">
- <xsl:value-of disable-output-escaping="yes" select="php:function('Tweeper::generateEnclosure', string(./@data-expanded-url))"/>
+ <xsl:copy-of select="php:function('Tweeper::generateEnclosure', string(./@data-expanded-url))"/>
</xsl:template>
<xsl:variable name="screen-name" select="//div[@class='user-actions btn-group not-following ']/@data-screen-name"/>
</xsl:template>
<xsl:variable name="screen-name" select="//div[@class='user-actions btn-group not-following ']/@data-screen-name"/>
$enc->setAttribute('length', $url_info['download_content_length']);
$enc->setAttribute('type', $url_info['content_type']);
$enc->setAttribute('length', $url_info['download_content_length']);
$enc->setAttribute('type', $url_info['content_type']);
- $dom->appendChild($enc);
-
- return $dom->saveXML($enc);