是否有 SharePoint XSLT 扩展功能的参考?
我发现开箱即用的 SharePoint Web 部件(RSS 查看器和数据视图 Web 部件)中使用了几种不同的 .NET XSLT 函数。
<xsl:stylesheet
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:rssaggwrt="http://schemas.microsoft.com/WebParts/v3/rssagg/runtime"
...>
...
<xsl:value-of select="rssaggwrt:MakeSafe($Html)"/>
<a href="{ddwrt:EnsureAllowedProtocol(string(link))}">More...</a>
...
</xsl:stylesheet>
在哪里可以找到描述 SharePoint 提供的所有扩展功能的参考?
There are a couple of different .NET XSLT functions that I see used in the out of the box SharePoint web parts (RSS Viewer and Data View web part).
<xsl:stylesheet
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:rssaggwrt="http://schemas.microsoft.com/WebParts/v3/rssagg/runtime"
...>
...
<xsl:value-of select="rssaggwrt:MakeSafe($Html)"/>
<a href="{ddwrt:EnsureAllowedProtocol(string(link))}">More...</a>
...
</xsl:stylesheet>
Where can I find a reference that describes all of the extension functions that SharePoint provides?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是我发现的一些描述 ddwrt 的文档(http://schemas.microsoft.com /WebParts/v2/DataView/runtime) 命名空间。
http://msdn.microsoft.com/en-us/library/aa505323。 ASPX
Here is some documentation I found that describes the ddwrt (http://schemas.microsoft.com/WebParts/v2/DataView/runtime) namespace.
http://msdn.microsoft.com/en-us/library/aa505323.aspx
好问题 +1
另请参阅
SharePoint 数据视图 Web 部件扩展ddwrt 命名空间中的函数
塞尔吉·范·登·乌弗 (Serge van den Oever)
Good question +1
See also
SharePoint Data View Web Part Extension Functions in the ddwrt Namespace
by Serge van den Oever
Serge 的文章指向 Microsoft.SharePoint,您可以在其中找到 Microsoft.SharePoint.WebPartPages 命名空间。 在那里,您可以找到 DdwRuntime 和 BaseDdwRuntime。 在那里,您可以找到所有 ddwrt 函数。 我用反编译器来查找这个。
Serge's article points to Microsoft.SharePoint, where you can find the Microsoft.SharePoint.WebPartPages namespace. In there, you can find the DdwRuntime and the BaseDdwRuntime. There, you can find all of the ddwrt functions. I used a decompiler to look this up.
我也一直想了解有关 ddwrt 的更多信息。 我能找到的最多信息来自 Serge van den Oever,后来变成了上一个答案中引用的 MSDN 文章。
http://weblogs.asp.net/soever/archive/ 2005/01/03/345535.aspx
正如他在博客文章中指出的那样,本文包含一些在 MSDN 文章中被审查的信息。
除了这篇文章之外,关于这个主题的文章很少。 不幸的是,搜索现有的生成代码(例如 DataForm Web 部件中的 xsl)似乎是目前了解更多信息的最佳技术。
I have been wanting more info on ddwrt as well. The most information I have been able to find is from Serge van den Oever that was later turned into the MSDN article referenced in the previous answer.
http://weblogs.asp.net/soever/archive/2005/01/03/345535.aspx
As he noted in his blog post, this article contains some info that was censored in the MSDN article.
Other than this article, there is very little written on the topic. It unfortunately appears that scouring existing generated code (such as the xsl in DataForm web parts) is the best technique to learn more at present.