2011-11-16 74 views
0

我需要一些帮助来转换使用XSLT的Wordpress feed。将此代码应用于Feed时出现错误。使用XSLT转换Wordpress 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> 

回答

1

您所指定的命名空间URI在XSL声明内容

<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:content="????"> 

的URI 内容命名空间应匹配应该XML提要内被指定的一个。

+0

不,我不知道名称空间。 – runners3431