This is what I want to achieve (in SharePoint 2010):

  • A custom page containing 2 XsltListViewWebPart
  • Both of them rendering the same list data, but with different XSLT definition for display
  • I want to store the View definition separately (independent of these 2 webparts) so that I don't have to redefine (& adjust) the view everytime
  • Filter control(s) on the same page should be able to act on the View, updating both views at the same time.

How can I do this? My initial thought was:
- Define the View and save it as a separate CAML file
- Use XmlDefinitionLink and refer the URL of the CAML file in both XsltListViewWebPart controls

However, nobody seems to know how to use XmlDefinitionLink. Any ideas? Couple of Google search results only showed how frustrated users are with XmlDefinitionLink.

2 Answers 2


When you say "different XSLT Definition", do you mean the view or the XSL ?

If you mean the view: XSLTListViewWebParts, if they're pointing to a list (because Document Libraries seem to act up apparently) can be pointed to one of the List's views. This way you don't have to define the view on the webpart. You can set it like so:

webpart.ViewGuid = view.ID.ToString("B").ToUpper();

where view is the list's SPView you want to use.

I think you can connect the filter controls to multiple webparts.


check this link:

Filtering a XsltListViewWebPart that has "Send Row of Data To“ connection doesn’t work?



or this:


  • 2
    Welcome Exclusive to SharePoint StackExchange, while your answer may potentially answer the question, it doesn't explain why the links may be of use. Also the second two links being external blogs, they may be taken down, so an extract at the minimum highlighting the fix would be desirable. Please refer to the full FAQ[1] on how to use SharePoint StackExchange. ENJOY [1]: sharepoint.stackexchange.com/faq
    – Hugh Wood
    Commented Nov 29, 2012 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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