[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: test and variable. LotusXSL crashes. Why?
Subject: Re: test and variable. LotusXSL crashes. Why? From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 16 Dec 1999 11:18:54 GMT |
<xsl:when test="$counter<'1'"> '1' is the string 1, on which you can't do a < test. You want the number 1, so <xsl:when test="$counter < 1"> > What I am trying to do is simply to test if the number of ELT is less > than 1 If that's all you want to do with the count, you don't need a variable at all: <xsl:when test="count(ELT) = 0"> since it's a count frrom a node list, it can't be negative, so = 0 seems a simpler test than < 1. In fact that is just testing whether there are any ELT, for which you don't need count() as an empty node list counts as false, <xsl:when test="ELT"> David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
test and variable. LotusXSL crashes, Yann Desnoues | Thread | Why isn't node-set built in?, Paul W. Abrahams |
How to get Layout--Newbie, John . Cyriac | Date | Trouble with XT??, Yann Desnoues |
Month |