comapring numbers with greater than and less than

Subject: comapring numbers with greater than and less than
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Sun, 20 Aug 2000 13:59:51 -0700
How do you do something like this (which doesn't work because of the &lt; in
the test)?
<xsl:if test="position()<($totalcount/2)">

I want to test for the number of items and put half into one column and half
into the other column:

<td><xsl:if test="position()<($totalcount/2)"><xsl:apply-templates
select="//config/network/channel/features/item"
mode="contentarea"/></xsl:if></td>
               <td><xsl:if
test="position()>($totalcount/2)"><xsl:apply-templates
select="//config/network/channel/features/item"
mode="contentarea"/></xsl:if></td>

if someone can tell me a better way I would be appreciative.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread