rss_converter_dilbert.com.xsl: add support for the <enclosure/> element
[tweeper.git] / 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>