Contents tagged with XSLT
-
SharePoint XSLT Web Part
After my previous post on XSLT processing, what else could follow? Of course, an XSLT web part for SharePoint!
-
XSLT Processing in .NET
God only knows why, but the .NET framework only includes support for XSLT 1.0. This makes it difficult, but not impossible, to use the more recent 2.0 version: a number of external libraries exist that can help us achieve that.
-
Filtering and Sorting SharePoint List Views
-
HTML Tags in XSLT Variables
Sometimes there is the need to show text inside HTML tags. For instance, in one occasion, I wanted to show just a portion of the contents in a Wiki field, but just the text. xsl:value-of will return the contents inside HTML tags:
-
Getting the Current User in SharePoint XSLT
SharePoint offers a couple of ways by which we can obtain the current user for use in a XSLT web part like DataFormWebPart or XsltListViewWebPart. All involve first setting parameters through the ParameterBindings property:
-
Show All Content in XSLT
I have already shown how you can display all attributes and their values from a XSLT content, but in case you want to look at the whole structure plus their attributes, you can use this instead:
-
Access Navigation Nodes in SharePoint XSLT
SharePoint relies on ASP.NET Site Map Providers for generating navigation links on its default pages. Specifically, the default Web.config file registers a (big!) number of providers, which control different aspects of its navigation:
-
Retrieving SharePoint User Profile Properties in XSLT
A common request is to be able to retrieve user information from XSLT (XsltListViewWebPart, DataFormWebPart, etc). It is possible to obtain some information through server variables (LOGON_USER), CAML variables (UserID) or ddwrt:UserLookup extension function. It works, to some extent, but sometimes it is not enough.
-
Distinct Values in XSLT
How to get distinct attribute values:
-
XSLT For Loop
If you ever need to implement a for loop in XSLT, here’s one possibility: