SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to modify the structure of the HTML rendered by the XsltListViewWebPart in the default AllItems.aspx SharePoint page. Specifically, I need to separate the column headings into its own table and the data cells into its own table.

I have customized an Empty Data View web part before and it was very simple since the structure of the table was in the code of the page. For the XsltListViewWebPart the table structure seems to be hidden somewhere else.

How can I change the table structure of this XLWP?

share|improve this question
up vote 1 down vote accepted

This wabpart uses XSL transformation. Basically, it uses main.xsl file to render HTML. You can find this file into 14 folder. But I donot recomend to do changes in this file. The best solution is to coppy main.xsl, rename it and then add reference to a new file in the webpart property or list definition. Also you can use SharePoint designer to make changes. In this case xsl for transformation includes into webpart markup.

share|improve this answer

Actually I have a web part exactly for this need, called Item Lister Web Part. You can check that out.

Have a nice day...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.