雪叶丹枫

这是我在网络上的统一帐号,无论在那个社区我都使用这些信息标志我自己

导航

MOSS Beta2中自带的RSS Viewer的一个Bug修正

Posted on 2006-09-14 09:33  雪叶丹枫  阅读(894)  评论(0编辑  收藏  举报
MOSS2007中有一个新的WebPart用于显示RSS列表,在Webpart将RSS内容以标题方式显示,点击标题可以查看到标题的内容,在Beta2版本中,如果在一个页面上放置两个以上的RSS Viewer,在单击标题展开内容时会出现一个脚本错误:Style.Display对象为空或不是对象。
修正该错误的方法如下:
1 在%system%\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\PortalLayouts\DWP目录下找到RSSViewer.webpart文件
2 在该文件中找到以下内容
<xsl:variable name="CurPosition" select="position()" />
<xsl:variable name="RssFeedLink" select="string('RssFeedLink')" />
<xsl:variable name="CurrentElement" select="concat($RssFeedLink,$CurPosition)" />
3 将找到的内容修改如下:
<xsl:variable name="CurPosition" select="position()" />
<xsl:variable name="RssFeedLink" select="string('RssFeedLink')" />
<xsl:variable name="CurrentElement" select="concat(concat($RssFeedLink,$CurPosition), generate-id())" />
4 在Site Settings中重新将该Webpart导入到网站
5 重新加载现有的RSS Viewer

另外在试用中还发现如果启用了RSS Viewer的Cache XSLT Transform项,在浏览器该Webpart不能正常显示,提示Unable to display this webpart错误。