摘要: xsltListView中的的联接和投影创建两个List, 建立Lookup关系联接:具体看MSDN<Joins><Join Type='LEFT' ListAlias='Sections'><Eq><FieldRef Name='SectionName' RefType='Id'/><FieldRef List='Sections' Name='Id'/></Eq></Join></Joins>投影:具 阅读全文
posted @ 2011-04-14 18:28 一只老鼠 阅读(389) 评论(0) 推荐(0) 编辑
摘要: XsltListView has less setting than DataFormWebpart, and we can just override some xsl template to customize it.it is very useful improvement in sharepoint 2010, so just let us go into it.1. no more spdatasource , xmldefinition replace of it<XmlDefinition> <View Name="{420E5B2A-8C2C-44 阅读全文
posted @ 2011-04-14 17:27 一只老鼠 阅读(530) 评论(0) 推荐(0) 编辑
摘要: find the xsl files in folder C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\XSLsequence of DataForm xsltfirst: 1. construct the class<xsl:variable name="ViewClassName"> <xsl:choose> <xsl:when test="$dvt_RowCount=0">ms 阅读全文
posted @ 2011-04-14 16:25 一只老鼠 阅读(278) 评论(0) 推荐(1) 编辑
摘要: Header ToolBarthere is a xslt template:ListViewToolbarit contains following sharepoint server controls control the tool bar<SharePoint:NewMenu runat="server"></SharePoint:NewMenu><SharePoint:UploadMenu runat="server" /><SharePoint:ActionsMenu runat="serv 阅读全文
posted @ 2011-04-14 15:34 一只老鼠 阅读(260) 评论(0) 推荐(0) 编辑
摘要: the structure of the DataForm Webpart:1. SPDatasource ViewFieldsFilterSorting2. DataFieldsthe fields inside will be using at Xslt template3. ParameterBindingsthis will be used in SPDataSource, we will talk in detail later 阅读全文
posted @ 2011-04-14 15:01 一只老鼠 阅读(186) 评论(0) 推荐(0) 编辑
摘要: the most simplest xsl format: <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 阅读全文
posted @ 2011-04-14 15:00 一只老鼠 阅读(423) 评论(0) 推荐(0) 编辑