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>