Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
My XML is getting messed up using the FB markup language. For Example:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:MailEngine="urn:MailEngine" exclude-result-prefixes="fb msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets MailEngine "><xsl:output method="xml" omit-xml-declaration="yes"/><xsl:param name="currentPage"/><xsl:variable name="domain" select="'http://'" /><xsl:variable name="url" select="concat($domain,umbraco.library:RequestServerVariables('SERVER_NAME'))" /><xsl:variable name="AppId" select="/macro/AppId" /><xsl:template match="/"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId={$AppId}&xfbml=1" type="text/javascript"></script><fb:comments xid="{$url}{umbraco.library:NiceUrl($currentPage/@id)}" numposts="10" width="225" publish_feed="true"></fb:comments></xsl:template></xsl:stylesheet>
My output is:
<div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#appId=000&xfbml=1" type="text/javascript"></script> <fb:comments xid="http://www.mysite.com/default.aspx" numposts="10" width="225" publish_feed="true" xmlns:fb="http://www.facebook.com/2008/fbml" />
My problem is at the end of the fb element, I can't get rid of it!
xmlns:fb="http://www.facebook.com/2008/fbml"
Is your problem the empy tags?
I.e.
<div id="fb-root"></div>
You may need an empty string in there or else the XSLT makes it
<div id="fb-root" />
Which most browsers don't like.
Try:
<div id="fb-root"><xsl:value-of select="''" /></div>
Did you find a resolution to this?
<xsl:output method="html" omit-xml-declaration="yes"/>
This is not the X Mickey L World :-)
Thanks Laurent! Works perfectly.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Facebook Comments XSLT Issue
My XML is getting messed up using the FB markup language. For Example:
My output is:
My problem is at the end of the fb element, I can't get rid of it!
Is your problem the empy tags?
I.e.
You may need an empty string in there or else the XSLT makes it
Which most browsers don't like.
Try:
Did you find a resolution to this?
<xsl:output method="html" omit-xml-declaration="yes"/>
This is not the X Mickey L World :-)
Thanks Laurent! Works perfectly.
is working on a reply...