views:

298

answers:

0

Hi,

How can I apply the custom XSL rendering for the XSLTListView web part in SharePoint 2010? So, for example, I have a list of "Employees". Here is the list of columns I have for this Employee list - Full name, Job Title, Team, Contribution, Project. For this list I have created a new "List View" which has a grouping by Job Title. Then I have created a new page. In that page, I have added the Employees List and then in web part properties I have changed it to use the new List View (grouped by Job Title).

I would like to control the HTML rendering of this web part and I don't know how do I achieve this? I do understand that by default a list view web part uses vwsytles.xsl and fldtypes.xsl stylesheets which are located in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\XSL on the server. Should I grab these stylesheets and then change it and then point the web part to use these new ones? How do I change the web part to point to the stylesheets that I want to use instead of the default ones? I have also noticed that you can not even export the list view web part and change the properties and then import it back.

I can look at the web part properties (by clicking on "Edit Web Part"). The properties panel has "Miscellaneous" category which has the following properties - Sample Data, XSL Link etc. What are these properties? I can't seem to find any help on these properties? Can I change the XSL stylesheet by specifying the value in "XSL Link" property?

Hope it makes sense.

Thanks Hitesh