Dataform webpart inside (1)

Source: Internet
Author: User

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 extends 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
 
 
 
<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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.