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">&lt;/tr&gt;</xsl:text +> <xsl:if test="position() != last()" ddwrt:cf_ignore="1"> <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:t +ext> </xsl:if> </xsl:if> </xsl:template> </xsl:stylesheet>
Thanks in Advance

In reply to Re^2: OT - Dynamic data into columns in XSLT by Anonymous Monk
in thread OT - Dynamic data into columns in XSLT by rashley

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.