My Techie Blog

  Home  |   Contact  |   Syndication    |   Login
  110 Posts | 5 Stories | 406 Comments | 0 Trackbacks

News

Article Categories

Archives

ADO.NET

Ajax

API/WebServices

ASP.NET Resources

BizTalk Server

Blogs I read

Free Books

How to

iOT

JavaScript

JQuery

JSLink - SharePoint

JSON

LINQ

Misc

Mobile BI

MS Business Inteliigence

Reporting Services

Responsive/MVC ASP.NET

SEO

Sharepoint Resources/Tools

SharePoint 2010 Branding

SharePoint 2010 Videos

SharePoint 2013

SharePoint Online

SilverLight

SPServices

SQL Server

Sql Server 2012

SSIS

Web Optimization Tools

Web Performace Tools

Windows 8

Windows Azure

Windows Azure

Windows Phone

WorkFlows

WSS V3

xml

I have been thinking for a while how i can reuse my code when building custom dataview webparts in sharepoint designer 2010.
So i decided to use the XslLink which is one of the properties when you edit a sharepoint webpart.
I started by creating a xsl file that i can use but after adding the link to the file like so:


<XslLink>sites/server/mycustomtemplate.xsl</XslLink>

I get the error : This web part does not have  a valid XSLT stylesheet: There is no XSL property available for presenting the data.

So after some debugging i noticed it was the directory path for the link to the XSL style shee gets broken.
So i changed it to  the full URL  http://mysite/sites/server/mycustomtemplate.xsl it works
Enjoy

posted on Monday, April 9, 2012 8:16 PM

Feedback

# re: This web part does not have a valid XSLT stylesheet: There is no XSL property available for presenting the data. 4/8/2013 7:01 AM KB
Hey, thanks. This could be a breakthrough for me. I was trying to copy the code from one webpart to another and every time it would look like it was working in SP Designer, then not render later. Putting in the full path seems to have fixed it. Saved me some headaches!

# re: This web part does not have a valid XSLT stylesheet: There is no XSL property available for presenting the data. 10/13/2014 7:18 AM Adamo
Thanks dude! you saved me one sleepless night!

# re: This web part does not have a valid XSLT stylesheet: There is no XSL property available for presenting the data. 5/15/2015 1:40 AM SM
Thanks a lot!
I'd spent several hours trying to figure out this issue and probably would have spent several more hours without this fix!

Post A Comment
Title:
Name:
Email:
Comment:
Verification: