This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

comapring numbers with greater than and less than


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]