This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
comapring numbers with greater than and less than
- To: xsl-list at mulberrytech dot com
- Subject: comapring numbers with greater than and less than
- From: Robert Koberg <rob at koberg dot com>
- Date: Sun, 20 Aug 2000 13:59:51 -0700
- References: <200008090911.LAA18301@mail.informatik.hu-berlin.de>
- Reply-To: xsl-list at mulberrytech dot com
How do you do something like this (which doesn't work because of the < 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