rss_converter_dilbert.com.xsl: add support for the <enclosure/> element
authorAntonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 16:15:29 +0000 (18:15 +0200)
committerAntonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 16:15:29 +0000 (18:15 +0200)
rss_converter_dilbert.com.xsl

index ce7075f..85f6648 100644 (file)
@@ -74,6 +74,9 @@
                 <img src="{$picture-url}" alt="{$picture-title}"/>
                 <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
             </description>
+            <xsl:if test="$generate-enclosure = 1">
+                <xsl:copy-of select="php:function('Tweeper::generateEnclosure', string($picture-url))"/>
+            </xsl:if>
         </item>
     </xsl:template>