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

Posted by Patrick Olurotimi Ige on Geeks with Blogs See other posts from Geeks with Blogs or by Patrick Olurotimi Ige
Published on Tue, 10 Apr 2012 07:16:26 GMT Indexed on 2012/04/10 11:30 UTC
Read the original article Hit count: 834

Filed under:
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

© Geeks with Blogs or respective owner