I need to customize the XSL for an XsltListViewWebPart in SP2010. I can do so
in Designer, which adds an Xsl attribute to the web part markup. I want to
deploy this with a list in my feature (sandboxed solution, so I cannot modify
_layouts/xsl).
I tried creating a separate xsl file with the customized xsl, adding it to my
solution, and modifying the List instance as follows...
<List ...>
...
<Views>
<View ...>
<XslLink Default="TRUE">SiteAssets/xsl/My.xsl</XslLink>
</View>
</Views>
...
</List>
I cannot figure out how to modify the xsl of the default view. The XslLink does
not seem to work when the file lives in a document library. If I place the file
in _layouts/xsl and use simply "My.xsl" as the XslLink, it actually works. I
tried several other values to no avail.
So is this not possible in a Sandboxed solution? Are there alternate solutions
I should consider?
Do you know someone who can help? Share a link to this thread on twitter, or facebook.