我有一个要发布到 Facebook 的 RSS 源
问题是图像没有出现,但描述和标题工作正常。我们使用 XSL 文档来创建提要,我相信问题出在此处:
RSS 提要:www.khl.com/access-international
用于生成图像的 XSL:
  <item>
    <title><xsl:value-of select="name"/></title>
    <link>http://www.khl.com<xsl:value-of select="$magazine_path" />/detail/<xsl:value-of select="link" /></link>
    <description><xsl:value-of select="description"/><![CDATA[
        <img src="http://www.khl.com{item-links/item-link[@id=2]/items/item[1]/derived-files/preview}"/><img alt="" 
             border="0" 
             src="http://www.khl.com{item-links/item-link[@id=2]/items/item[1]/derived-files/preview}" 
             />
    ]]></description>
    <pubDate><xsl:apply-templates select="creation-date" mode="date-format"/><xsl:value-of select="substring(creation-date,11,16)"/><xsl:text>:</xsl:text>00 GMT</pubDate>
    <guid>http://www.khl.com<xsl:value-of select="$magazine_path" />/detail/<xsl:value-of select="link" /></guid>
      </item>
任何帮助,将不胜感激,
问候,山姆
我已经更新了我们的提要,但仍然没有运气。
XSL 文档中使用的代码现在为
 <item>
  <title><xsl:value-of select="name"/></title>
  <link>http://www.khl.com<xsl:value-of select="$magazine_path" />/detail/<xsl:value-of select="link" /></link>
  <description>
    <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
    <xsl:value-of select="description"/>
    <img src="http://www.khl.com{item-links/item-link[@id=2]/items/item[1]/derived-files/thumbnail}"/>
    <img alt="" border="0" src="http://www.khl.com{item-links/item-link[@id=2]/items/item[1]/derived-files/thumbnail}" />
    <xsl:text disable-output-escaping="yes">]]></xsl:text>
  </description>
  <pubDate><xsl:apply-templates select="creation-date" mode="date-format"/><xsl:value-of select="substring(creation-date,11,16)"/><xsl:text>:</xsl:text>00 GMT</pubDate>
  <guid>http://www.khl.com<xsl:value-of select="$magazine_path" />/detail/<xsl:value-of select="link" /></guid>
</item>
</xsl:template>
我重新检查了 XML,它也是正确的并指向图像。提要可在此处找到:www.khl.com/access-international。仍然没有图像标签
希望我做错了什么