• DataForm Webpart Inside (3)


    find the xsl files in folder 

    

    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\XSL
    

    sequence of DataForm xslt

    first:

    1. construct the class

    <xsl:variable name="ViewClassName">
        <xsl:choose>
          <xsl:when test="$dvt_RowCount=0">ms-emptyView</xsl:when>
          <xsl:otherwise>ms-listviewtable</xsl:otherwise>
        </xsl:choose>
     </xsl:variable>
    

    2. Root match

    <xsl:template match="/">
    

    alwarys go here

    <xsl:template name="View_Default_RootTemplate" mode="RootTemplate" match="View" ddwrt:dvt_mode="root">
    

    3. ToolBar

    <xsl:call-template name="ListViewToolbar"/>
    

    4. List Body( actually it just a html table )

    <xsl:template match="View" mode="full">
    

    5. Header Columns

    <xsl:apply-templates mode="header" select="ViewFields/FieldRef[not(@Explicit='TRUE')]"/>
    

    it is many kinds of columns , such as datetime, string , integer , each kind of columns has it's own template

      <xsl:template match="FieldRef[@FieldType='BusinessData']" mode="header" ddwrt:dvt_mode="header">
        <th class="ms-vh2" nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)">
          <xsl:call-template name="dvt_headerfield">
            <xsl:with-param name="fieldname">
              <xsl:value-of select="@Name"/>
            </xsl:with-param>
            <xsl:with-param name="fieldtitle">
              <xsl:value-of select="@DisplayName"/>
            </xsl:with-param>
            <xsl:with-param name="displayname">
              <xsl:value-of select="@DisplayName"/>
            </xsl:with-param>
            <xsl:with-param name="fieldtype">BusinessData</xsl:with-param>
          </xsl:call-template>
        </th>
     </xsl:template>
    
  • 相关阅读:
    MDL中捕获到损坏的页表页
    跟踪MmSt分页池使用情况
    了解NTFS压缩
    如何跟踪高CPU在用户模式应用程序-现场调试!
    如何与转储文件建立丰富多彩的关系
    Kernel Stack Overflows
    非分页池的消耗
    MBR反汇编
    LPC (Local procedure calls)(二)内核调试扩展
    LPC (Local procedure calls) (一)数据结构
  • 原文地址:https://www.cnblogs.com/frankzye/p/2016177.html
Copyright © 2020-2023  润新知