[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: test and variable. LotusXSL crashes. Why?
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|