Steps to add an xslt file to your style library using a feature in SP2010:
1.> In VS2010 create a new Element;
2.> Under the element add and xslt, change the "Deployment Type" property;
3.> Move the elements to "Items in the Feature" default is "Items in the Solution";
4.> Modify the elements.xml file;

5.> Ensure the itemStyleCustom.xsl exists in the Xsl Style library.

4 comments:
it doesnt get deployed to the style libray.
This didnt work out for me. Is it possible to do it programatically as all the blogs I checked doesnt provide a solution
Hi Suren,
Pls give me more detail. That is the error message?
This is pretty simple - check you have done all the steps. This declaritive solution is the best way to do tis in my opinion. You can do it programatically through a feature receiver.
Post a Comment