Is there a reference for the SharePoint XSLT extension functions?
Asked Answered
P

4

9

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?

Pacific answered 20/9, 2008 at 3:51 Comment(0)
T
4

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.

Tempestuous answered 20/9, 2008 at 17:56 Comment(1)
Another good link on DDWRT options, this page is part 14 but has back links to all the other parts at the top. sympmarc.com/2010/03/09/…Thieve
P
1

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

Pacific answered 20/9, 2008 at 3:53 Comment(1)
still looking for an exhaustive referencePacific
I
1

Good question +1

See also

SharePoint Data View Web Part Extension Functions in the ddwrt Namespace by Serge van den Oever

Isidor answered 10/3, 2010 at 18:24 Comment(0)
R
1

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.

Rounded answered 6/4, 2011 at 15:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.