Hi Daniel,
Thank you for responding..XsltListViewWebPart is like this:
<WebPartPages:XsltListViewWebPart runat="server" AllowHide="True" PartImageSmall="" PartOrder="6" Title="Posts" ManualRefresh="False" ViewGuid="{53B037C2-222F-4431-84D1-7B7EC7768E19}" HelpMode="Modeless" AllowEdit="True" SuppressWebPartChrome="False" ShowWithSampleData="False" ListId="4a92c048-f331-4979-9073-1404e3458d5c" GhostedXslLink="main.xsl" PageSize="-1" UseSQLDataSourcePaging="True" EnableOriginalValue="False" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="False" AutoRefreshInterval="60" ViewContentTypeId="0x" Description="Use the Posts list for posts in this blog." AllowZoneChange="True" ID="g_52262e87_ee8e_4ba3_9241_74c607c9135e" MissingAssembly="Cannot import this Web Part." FrameState="Normal" AllowMinimize="True" Dir="Default" ViewFlag="9" AllowConnect="True" DetailLink="/sales/ProductAnnouncements/Lists/Posts" WebId="76774c76-912f-424b-b62b-603e428a4e64" PartImageLarge="" TitleUrl="/sales/ProductAnnouncements/Lists/Posts" ListName="{4A92C048-F331-4979-9073-1404E3458D5C}" ExportMode="NonSensitiveData" FrameType="Default" DataSourceID="" IsIncludedFilter="" AllowRemove="True" HelpLink="" IsIncluded="True" IsVisible="True" AsyncRefresh="False" AutoRefresh="False" InitialAsyncDataFetch="False" __MarkupType="vsattributemarkup" __WebPartId="{53B037C2-222F-4431-84D1-7B7EC7768E19}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><DataFields>
</DataFields>
<Xsl>
<xsl:stylesheet xmlns:x="http://ift.tt/WPkwi5; xmlns:d="http://ift.tt/UpU4lc; version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://ift.tt/1ahwx8w; xmlns:asp="http://ift.tt/UpU4lg; xmlns:__designer="http://ift.tt/UpU5pf; xmlns:xsl="http://ift.tt/ore0Pe; xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal" xmlns:o="urn:schemas-microsoft-com:office:office">
<xsl:include href="/_layouts/xsl/main.xsl"/>
<xsl:include href="/_layouts/xsl/internal.xsl"/>
<xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() >= $FirstRow and position() <= $LastRow)]"/>
<xsl:param name="dvt_apos">'</xsl:param>
<xsl:template mode="Item" match="Row[../../@ViewStyleID='15']" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">
<xsl:param name="Fields" select="."/>
<xsl:param name="Collapse" select="."/>
<xsl:param name="Position" select="1"/>
<xsl:param name="Last" select="1"/>
<xsl:variable name="NumColumns" select="count($Fields[not(@Type='Note' or preceding-sibling::*[@Type='Note'])])"/>
<xsl:variable name="thisNode" select="."/>
<xsl:if test="../../@ViewStyleID='15'">
<tr>
<td class="ms-newsletterline" colspan="{$NumColumns}">
<img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
</td>
</tr>
</xsl:if>
<tr>
<xsl:if test="$Position mod 2 = 1">
<xsl:attribute name="class">ms-alternating ms-newsletteralt</xsl:attribute>
</xsl:if>
<xsl:for-each select="$Fields[position() <= $NumColumns]">
<xsl:apply-templates select="." mode="printTableCellEcbAllowed">
<xsl:with-param name="thisNode" select="$thisNode"/>
</xsl:apply-templates>
</xsl:for-each>
</tr>
<xsl:for-each select="$Fields[position() > $NumColumns]">
<tr>
<td class = "ms-vb-tall" colspan="{$NumColumns}">
<xsl:if test="not(@Type='Note')">
<xsl:value-of select="@DisplayName"/>:
</xsl:if>
<xsl:choose>
<xsl:when test="@Type='User'">
<xsl:value-of select="$thisNode/@*[name()=concat(current()/@Name, '.span')]" disable-output-escaping="yes"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="PrintFieldWithDisplayFormLink">
<xsl:with-param name="thisNode" select="$thisNode"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</td>
</tr></xsl:for-each>
<xsl:if test="$NumColumns < count($Fields)">
<tr>
<td id="ItemAttchment{generate-id()}" class="ms-vb-tall">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="5%"> <span>Liite:</span>
</td>
<td>
<xsl:element name="SharePoint:AttachmentsField">
<xsl:attribute name="runat">server</xsl:attribute>
<xsl:attribute name="FieldName">Attachments</xsl:attribute>
<xsl:attribute name="ControlMode">Display</xsl:attribute>
<xsl:attribute name="Visible">true</xsl:attribute>
<xsl:attribute name="ItemId">
<xsl:value-of select="@ID"/>
</xsl:attribute>
</xsl:element>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="{$NumColumns}">
<img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
</td>
</tr>
<tr>
<td colspan="{$NumColumns}">
<img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
</td>
</tr>
</xsl:if>
</xsl:template></xsl:stylesheet></Xsl>
<ParameterBindings>
<ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
<ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
<ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
<ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
<ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(core,noXinviewofY_DEFAULT)" />
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,moreItemsParen)" />
</ParameterBindings>
<XmlDefinition>
<View Name="{53B037C2-222F-4431-84D1-7B7EC7768E19}" Type="HTML" Hidden="TRUE" TabularView="FALSE" DisplayName="" Url="/sales/ProductAnnouncements/Lists/Categories/Category_copy(1).aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/posts.png">
<Query>
<OrderBy>
<FieldRef Name="PublishedDate" Ascending="FALSE"/>
<FieldRef Name="ID" Ascending="FALSE"/>
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu"/>
<FieldRef Name="Body"/>
<FieldRef Name="PostCategory"/>
<FieldRef Name="Created"/>
</ViewFields>
<RowLimit Paged="TRUE">10</RowLimit>
<Aggregations Value="Off"/>
<ViewStyle ID="15"/>
<Toolbar Type="Standard"/>
</View>
</XmlDefinition>
</WebPartPages:XsltListViewWebPart>
Many Thanks,
Neelima.
Neelima
No comments:
Post a Comment