Search code examples
facebookplonexfbmldiazo

xfbml support for diazo


I'm trying to use collective.simplesocial on my diazo-themed site (Plone 4.1), and notice the like button was broken.

The <fb:like> tag was transformed to <like> (the prefix is stripped). All other xfbml tags suffered the same problem.

I've tried to add xmlns:fb="http://www.facebook.com/2008/fbml" to html tag but it didn't work either.

Any idea to overcome this ?


Solution

  • This should work for the plusone button (see comment for answer to your original question):

    <xsl:template match="plusone">
      <xsl:element name="g:{local-name()}" xmlns:g="http://base.google.com/ns/1.0">
        <xsl:apply-templates select="@*|node()"/>
      </xsl:element>
    </xsl:template>