无法从XSLTListView模板中删除表

时间:2012-02-27 18:00:36

标签: xslt sharepoint-2010

我一直在尝试从图像库创建一个jquery图像轮播,但脚本没有,因为XSLTListView webpart用表格包装我的模板。是否可以删除表格,只需重复我提供的模板即可。这就是我的网页部分,

<WebPartPages:XsltListViewWebPart runat="server" IsIncluded="True" GhostedXslLink="main.xsl" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="slider" PageType="PAGE_NORMALVIEW" ListName="{557F7470-FDA0-48DA-80B3-B1E1F5C0E24D}" Default="FALSE" DisplayName="slider" __markuptype="vsattributemarkup" __WebPartId="{23071649-EF47-4187-800F-262509F0AAFE}" id="g_23071649_ef47_4187_800f_262509f0aafe" viewcontenttypeid="0x" __designer:customxsl="fldtypes_Ratings.xsl">
    <XmlDefinition>
        <View Name="{B3A72A90-5DAD-4660-9D4B-CCFF0B1FB253}" MobileView="TRUE" Type="HTML" TabularView="FALSE" DisplayName="All Pictures" Url="/slider/Forms/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ToolbarTemplate="PictureLibraryViewToolBar" ImageUrl="/_layouts/images/plicon.png">
            <Query/>
            <ViewFields>
                <FieldRef Name="SelectedFlag"/>
                <FieldRef Name="DocIcon"/>
                <FieldRef Name="NameOrTitle"/>
                <FieldRef Name="ImageSize"/>
                <FieldRef Name="FileSizeDisplay"/>
                <FieldRef Name="RequiredField" Explicit="TRUE"/>
                <FieldRef Name="FileRef" Explicit="TRUE"/>
            </ViewFields>
            <RowLimit Paged="TRUE">30</RowLimit>
            <Toolbar Type="Standard"/>
        </View>
    </XmlDefinition>
    <xsl>
        <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() &gt;= $FirstRow and position() &lt;= $LastRow)]"/>
            <xsl:param name="dvt_apos">'</xsl:param>
            <xsl:template match="Row" mode="Item">
                <xsl:param name="thisNode" select="."/>
                <xsl:param name="class" />

                <div class="cs_article">
                    <a href="#">
                        <img src="{$thisNode/@FileRef}" />
                    </a>
                    <a href="#" class="readmore">Read More</a>

                </div>
                <!-- End cs_article -->

            </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>
</WebPartPages:XsltListViewWebPart>

模板中的html是我打算为图像库中的所有图像重复的。

由于

0 个答案:

没有答案