Im having a problem placing the XsltListViewWebPart on my Default.aspx template (relevant code bellow)
<WebPartPages:WebPartZone runat="server" ID="NewsItemsList">
<ZoneTemplate>
<WebPartPages:XsltListViewWebPart AllowPartiallyTrustedCallers="TRUE" runat="server" ListUrl="Lists/NewsItemsListInstance" ID="NewsItems" DisplayName="" ChromeType="None" ViewGuid="{00000000-0000-0000-0000-000000000000}">
<XmlDefinition>
<View Name="MyView" Default="True" Type="HTML" Hidden="TRUE" TabularView="FALSE" DisplayName=" " Url="View.aspx" Level="255" BaseViewID="2" ContentTypeID="0x01000627D3E6EEDA4DCD9F403FE5F9A66E45" ImageUrl="/_layouts/images/generic.png">
<Query>
<OrderBy>
<FieldRef Ascending="FALSE" Name="ID"/>
<FieldRef Ascending="FALSE" Name="Callout"/>
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments"></FieldRef>
<FieldRef Name="LinkTitle"></FieldRef>
<FieldRef Name="Callout"></FieldRef>
<FieldRef Name="Icon"></FieldRef>
</ViewFields>
<RowLimit Paged="TRUE">6</RowLimit>
<Aggregations Value="Off"/>
<Toolbar Type="Standard"/>
</View>
</XmlDefinition>
<XslLink>/Style Library/insight/xsl/NewsPortal.xslt</XslLink>
</WebPartPages:XsltListViewWebPart>
</ZoneTemplate>
</WebPartPages:WebPartZone>
when I browse to the template I receive the following error
Access denied. You do not have permission to perform this action or access this resource.
This only appears when i try to use the
<XslLink>/Style Library/insight/xsl/NewsPortal.xslt</XslLink>
element if I remove this then the error goes away. This has put me in a catch 22 situation because I can style the default view of the list through the schema.xml used to provision the list, however this styles all views of the list.
Is there even a way to specify this webpart to use a specific BaseViewID? if so what is it?
happy to provide more information if needed
Thanks in advance
Nicholas