How this link solves the current problem?
thanks,
sundar
-----Original Message-----
From: Dimitre Novatchev [mailto:dnovatchev(_at_)yahoo(_dot_)com]
Sent: Monday, April 28, 2003 5:50 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Vertical display
See:
http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&oe=UTF-
8&selm=b8ftqh%
249iaui%241%40ID-152440.news.dfncis.de&rnum=4
By providing a generic templates that produce a column-first HTML table
from the nodes of a node-set. The node-set and the desired number of
columns are provided as parameters.
In your case you will call this template like this:
<xsl:variable name="numCols" select="count(/o/com/*[1]/*)" />
<xsl:template match="/">
<table>
<xsl:apply-templates mode="multiColumn"
select="(/o/com/*/*)[position() <= $numCols]">
<xsl:with-param name="numCols" select="$numCols" />
<xsl:with-param name="nodes" select="/o/com/*/*" />
</xsl:apply-templates>
</table>
</xsl:template>
This produces the wanted result:
<table>
<tr>
<td>1</td>
<td>4</td>
<td>41</td>
<td>42</td>
</tr>
<tr>
<td>2</td>
<td>5</td>
<td>51</td>
<td>52</td>
</tr>
<tr>
<td>3</td>
<td>6</td>
<td>61</td>
<td>62</td>
</tr>
</table>
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list