0
我想在我的xslt呈現的網站中顯示一個Facebook登錄按鈕。使用xslt顯示<fb:loginbutton />?
我把
<fb:loginbutton></fb:login-button>
在XSLT,但我的頁面只是呈現
<login-button></login-button>
爲什麼,我能做些什麼呢?
我想在我的xslt呈現的網站中顯示一個Facebook登錄按鈕。使用xslt顯示<fb:loginbutton />?
我把
<fb:loginbutton></fb:login-button>
在XSLT,但我的頁面只是呈現
<login-button></login-button>
爲什麼,我能做些什麼呢?
我asume loginbutton而不是登錄按鈕是一個錯字?你有一個完整的例子嗎?
當我有這樣的XML:
<test>hi</test>
而這個XSLT:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fb="http://www.facebook.com/2008/fbml" version="1.0">
<xsl:output method="html" indent="yes"/>
<xsl:template match="test">
<html>
<body>
<fb:login-button>
test
</fb:login-button>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
我會得到以下結果:
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<fb:login-button>
test
</fb:login-button>
</body>
</html>
你包括允許FBML的javascript被插入頁面? – 2010-11-18 14:57:42