我需要帮助使用XSLT转换Wordpress Feed。将此代码应用于Feed时出现错误。
代码:
<xsl:value-of disable-output-escaping="yes" select="content:encoded"/>
错误:
Invalid XSLT: Prefix must resolve to a namespace: content
进给量:
<content:encoded>
<![CDATA[
<p>Welcome to the Workforce Development Division of Northern Virginia Community College
On this blog you will find out information about our program. This will include class
updates, news, events and other pertinent information. We hope you enjoy this blog. Feel.
</p>
]]>
</content:encoded>
答案 0 :(得分:1)
您是否在xsl声明中为内容指定了名称空间URI?
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:content="????">
内容命名空间的URI应与应在XML Feed中指定的URI匹配。