X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/481f2d015d14180be9982ced2f281494e0ec3855..6688dfe09b22a789cda56a19c7abeef583592209:/rss_converter_facebook.com.xsl?ds=sidebyside diff --git a/rss_converter_facebook.com.xsl b/rss_converter_facebook.com.xsl index b50be3d..347f1e4 100644 --- a/rss_converter_facebook.com.xsl +++ b/rss_converter_facebook.com.xsl @@ -42,9 +42,23 @@ https://facebook.com + + + + - + + <xsl:variable name="item-title" select="$item-content/p"/> @@ -81,8 +95,8 @@ </xsl:template> <xsl:template match="/"> - <xsl:variable name="channel-title" select="//meta[@property='og:title']/@content"/> - <xsl:variable name="channel-link" select="//meta[@property='og:url']/@content"/> + <xsl:variable name="channel-title" select="//title"/> + <xsl:variable name="channel-link" select="//div[contains(@class, 'userContentWrapper')][1]//a[1]/@href"/> <rss version="2.0"> <xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute> @@ -95,7 +109,9 @@ <xsl:value-of select="$channel-link"/> </link> <description> - <xsl:value-of select="normalize-space(//meta[@property='og:description']/@content)"/> + <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> + <xsl:copy-of select="//div[@data-id='1']/node()"/> + <xsl:text disable-output-escaping="yes">]]></xsl:text> </description> <image> <title>