I need help to display one field US State Name stored as title column from a US State List in 3 columns that snake. For example, if there are 60 rows of data, I want items 1-15 to show up in column 1 and items 16 - 29 in column 2 and so on...
here is my data view webpart xsl : can some help me to find out how to display it in 3 columns?
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="ht
+tp://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-resu
+lt-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.c
+om/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.
+com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebPart
+s/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transfo
+rm" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Mi
+crosoft.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:variable name="dvt_1_automode">0</xsl:variable>
<xsl:template match="/">
<xsl:call-template name="dvt_1"/>
</xsl:template>
<xsl:template name="dvt_1">
<xsl:variable name="dvt_StyleName">2ColCma</xsl:variable>
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
<table border="0" width="100%">
<tr>
<xsl:call-template name="dvt_1.body">
<xsl:with-param name="Rows" select="$Rows" />
</xsl:call-template>
</tr>
</table>
</xsl:template>
<xsl:template name="dvt_1.body">
<xsl:param name="Rows" />
<xsl:for-each select="$Rows">
<xsl:call-template name="dvt_1.rowview" />
</xsl:for-each>
</xsl:template>
<xsl:template name="dvt_1.rowview">
<td valign="top" width="50%" class="ms-vb">
<b>
<xsl:value-of select="@Title" />
</b>
<br />
<xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
<br /><span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDe
+lims(string(@ID))" ddwrt:ammode="view" />
</xsl:if>
</td>
<xsl:if test="position() mod 2 = 0" ddwrt:cf_ignore="1">
<xsl:text disable-output-escaping="yes"></tr></xsl:text
+>
<xsl:if test="position() != last()" ddwrt:cf_ignore="1">
<xsl:text disable-output-escaping="yes"><tr></xsl:t
+ext>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Thanks in Advance |