DataForm Webpart Inside (1)
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/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"> < xsl:output method="html" indent="no"/> < xsl:decimal-format NaN=""/> < xsl:param name="dvt_apos">'</ xsl:param > < xsl:param name="ManualRefresh"></ xsl:param > < xsl:param name="dvt_firstrow">1</ xsl:param > < xsl:param name="dvt_nextpagedata" /> < xsl:variable name="dvt_1_automode">0</ xsl:variable > < xsl:template match="/"> </ xsl:template > </ xsl:stylesheet > |
what is xmlns?
check here
http://www.xml.com/pub/a/2003/09/03/trxml.html
http://www.ibm.com/developerworks/cn/xml/x-xsltext/
http://hi.baidu.com/daijun2007/blog/item/2b0ae31863c1580a34fa4142.html
what is inside sharepoint xmlns?
ddwrt:
it contains many useful extension function:
AutoHyperLink
AutoNewLine
ConnEnclode
Counter
FieldFilterImageUrl
FieldFilterOptions
FieldPrefix
FieldSortImageUrl
FieldSortParameters
FilterLink
FormatDate
FormatDateTime
GenDisplayName
GenFireConnection
GenFireServerEvent
GetFileExtension
GetStringBeforeSeparator
GetVar
IfNew
IsPrivilegedUser
Limit
ListProperty
MapToAll
MapToControl
MapToIcon
NameChanged
PresenceEnabled
SelectOptions
SetVar
ThreadStamp
Today
TodayIso
UrlBaseName
UrlDirName
UrlEncode
URLLookup
UserLookup
find in here:http://msdn.microsoft.com/en-us/library/aa505323.aspx
example:
< xsl:template name="dvt_1.rowview"> < xsl:value-of select="ddwrt:UserLookup('domain\avmin','ID')"/> < xsl:value-of select="@Title"/>< Br /> </ xsl:template > |
HTML Result:
xmlns:asp
it allow you add asp.net webcontrol to server in your xslt;
example:
< xsl:template name="dvt_1.rowview"> < xsl:value-of select="@Title"/> < asp:TextBox id="myControl1{generate-id()}" runat="server"/> </ xsl:template > |
xmlns:_designer |
http://www.bryancook.net/2009/09/understanding-sharepoints-ddwrtdatabind.html |
it mainly bind form control to using updating, inserting, and deleting item data |
< a href="http://www.bryancook.net/2009/09/understanding-sharepoints-ddwrtdatabind.html" rel="noopener nofollow"></ a > |
<SharePoint:FormField runat= "server" id= "ff1{$Pos}" ControlMode= "Edit" FieldName= "Field1" __designer:bind="{ ddwrt:DataBind( 'u' , concat( 'ff1' ,$Pos), 'Value' , 'ValueChanged' 'ID' , ddwrt:EscapeDelims(@ID), '@Field1' )}" /> |
Sharepoint blocked the msxsl:script , so we can ignore msxsl tag.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET 9 new features-C#13新的锁类型和语义
· Linux系统下SQL Server数据库镜像配置全流程详解
· 现代计算机视觉入门之:什么是视频
· 你所不知道的 C/C++ 宏知识
· 聊一聊 操作系统蓝屏 c0000102 的故障分析
· 不到万不得已,千万不要去外包
· C# WebAPI 插件热插拔(持续更新中)
· 会议真的有必要吗?我们产品开发9年了,但从来没开过会
· 如何打造一个高并发系统?
· 《SpringBoot》EasyExcel实现百万数据的导入导出