Re: [xsl] A - B

Subject: Re: [xsl] A - B
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 22 Aug 2002 11:40:03 -0600 (MDT)
pcoustillas wrote:
> hi, how could i do A-B when A or B does not exist or is absent... 
> because without a test i recieve "NaN". Thanks.

NaN is the correct answer, if A or B cannot both be converted to numbers.

What do you want that would be different than this? Do you want non-numbers
like empty strings and empty node-sets to be treated as zeroes?

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


Current Thread
  • [xsl] A - B
    • pcoustillas - Thu, 22 Aug 2002 17:43:51 +0200
      • Mike Brown - Thu, 22 Aug 2002 11:40:03 -0600 (MDT) <=
      • Michael Leditschke - Fri, 23 Aug 2002 10:08:53 +1000
      • <Possible follow-ups>
      • Marrow - Thu, 22 Aug 2002 19:07:10 +0100
      • Marrow - Mon, 26 Aug 2002 10:59:24 +0100