You’re developing a custom Data View Web Part (Data Form Web Part) instance and within your XSL you need access to the URL of the site on which the web part is being accessed. This post assumes that the Data View Web Part is performing a same-site query, the solution here will not work for … Continue reading SharePoint: Referencing the Current Site URL in a Data View Web Part
This post demonstrates how to take the data returned from an SPSiteDataQuery query, convert it to XML and then to transform the XML using XSLT for presentation. The features described in this post include; A basic XSLT transformation stylesheet Loading an XSLT transformation stylesheet from the content database Supplying parameters to the XSLT transformation engine … Continue reading XSL Transformation with SPSiteDataQuery
Loading a text file from the SharePoint content database should be straightforward, and it is, kind of. The work I’m doing right now requires me to load XML and XSL files provisioned into the content database. Initially I figured I’d use the GetFileAsString method of SPWeb. Despite numerous posts extolling the virtues of this method, … Continue reading SharePoint: Load a Text File from the Content Database.
Recently I’ve been developing Sharepoint 2007 Web Parts to connect with the standard features of Sharepoint (Lists, Form Library web parts etc) and needed a bunch of stylesheets to do transformations into something reasonable for display purposes. Rather than cobble together something with notepad!, I found StyleVision from Altova, with which you can do visual design of your … Continue reading Visual XSLT/StyleSheet Design Tool