Syringe.Net.Nz
Irregular Injection of Opinion
RSS 2.0|Atom 1.0|CDF

 Thursday, November 03, 2005
Putting a sorted list into columns in XSLT

So you have an ordered list of things you want to put into two columns via XSLT.

I've always done this a very hard way in the past using recursive stack popping logic.

Here's a super easy way to do it.

<tr>

<td width="50%" valign="top">

<xsl:apply-templates select="item[(position() mod 2) = 1] " mode="child-categories"/>

</td>

<td width="50%" valign="top">

<xsl:apply-templates select=“item[(position() mod 2) = 0] " mode="child-categories"/>

</td>

</tr>

|Thursday, November 03, 2005 3:53:38 AM UTC|Comments [11]|    
Wednesday, February 15, 2006 7:20:25 PM UTC
1
Wednesday, February 15, 2006 7:20:26 PM UTC
2
Friday, June 23, 2006 9:37:07 AM UTC
mortgage
Wednesday, July 19, 2006 1:53:05 AM UTC
http://hoodia-gordonii-np.blogspot.com/ http://hoodiasideeffects-np.blogspot.com/ http://hoodiadietpill-np.blogspot.com/
Martha
Thursday, July 20, 2006 1:53:29 PM UTC
hello! http://nissan-sentra-np.blogspot.com/ http://nissan-xterra-np.blogspot.com/ http://nissan-altima-np.blogspot.com/ http://nissan-350z-np.blogspot.com/
Daniel
Saturday, August 05, 2006 11:10:53 AM UTC
refinance
Tuesday, August 08, 2006 11:43:44 AM UTC
home equity loans
Friday, August 11, 2006 2:07:40 AM UTC
refinancing
Sunday, August 13, 2006 12:55:59 AM UTC
refinance
Sunday, August 13, 2006 12:08:09 PM UTC
home loans
Sunday, August 20, 2006 11:11:54 AM UTC
refinance
Comments are closed.