在 peoplesoft pagelet 向导中,XML 是否需要声明 XML 的类型才能使 XSL 工作?
我有一个 RSS 源,我想将其放入 pagelet 中。
http://studentaffairs.csun.edu/calendar/admin/Feed.php?CALID=39&TYPE=RSS&tags=Men%27s%20Basketball
此 Feed 的 XML 不有一个 XML 声明。当我使用 Visual Studio 在本地查看它时,转换效果很好,但在 PeopleSoft 中它给了我一个错误。
错误是因为缺少 XML 声明吗?
有解决办法吗?
我无权更改 RSS 提要的布局。
PeopleSoft 错误:
尝试执行 XSL 转换时发生错误。
这是因为:
数据源未返回有效的 XML 或
用于转换的 XSL 无效。
更新:我确认问题是缺少 XML 声明。但有解决方法吗?
I have an RSS feed that I want in a pagelet.
http://studentaffairs.csun.edu/calendar/admin/Feed.php?CALID=39&TYPE=RSS&tags=Men%27s%20Basketball
The XML of this feed does not have an XML declaration. The transformation worked fine when I used visual studios to see it locally but in PeopleSoft it gives me an error.
Is the error because the XML declaration is missing?
Is there a work around for this?
I do not have access to change the layout of the RSS feed.
PeopleSoft error:
An error has occurred while trying to perform the XSL transformation.
This is because either:
The DataSource did not return valid XML or
The XSL for transformation is invalid.
UPDATE: I confirmed that the problem was the missing XML declaration. But is there a workaround for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请参阅此博文以获得一个可能的答案
http ://i-like-trains.blogspot.co.uk/2012/04/peoplesoft-in-windows-2008.html
See this blog post for one possible answer
http://i-like-trains.blogspot.co.uk/2012/04/peoplesoft-in-windows-2008.html
就我而言,需要在“pshome”/appserv/“appserv”/logs/tmp 下创建一个“tmp”目录...一旦我创建了此 tmp 文件夹,pagelet 向导就可以动态呈现 XSLT 并开始工作正常。
In my case, there needed to be a "tmp" directory created under the "pshome"/appserv/"appserv"/logs/tmp ... Once i created this tmp folder the pagelet wizard could then dynamically render the XSLT and it began working properly.
如果您设法将 XML 作为 DOM 对象加载,您可以自己添加声明。这将使 XML 有效,并且其他一切都会正常工作。
In case you manage to have the XML loaded as a DOM object, you could probably add the declaration yourself. This will make the XML valid and everything else would work fine.