Subject: RE: A - B
From: "Michael Leditschke" <mike@xxxxxxxxxxx>
Date: Fri, 23 Aug 2002 10:08:53 +1000
|
Typically there's some special value you want
in the case where A and/or B don't exist or
are not numeric.
One trick I've used in this case is
<xsl:decimal-format NaN="0"/>
and
<xsl:variable name="fred" select="format-number(A-B)"/>
This way you get "0" if the result is NaN.
HTH
Michael
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of pcoustillas
> Sent: Friday, 23 August 2002 1:44 AM
> To: mulberrytech
> Subject: A - B
>
>
> 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.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- A - B
- pcoustillas - Thu, 22 Aug 2002 11:43:30 -0400 (EDT)
- Mike Brown - Thu, 22 Aug 2002 13:39:01 -0400 (EDT)
- Michael Leditschke - Thu, 22 Aug 2002 20:07:56 -0400 (EDT) <=
- <Possible follow-ups>
- Marrow - Thu, 22 Aug 2002 14:10:44 -0400 (EDT)
- Marrow - Mon, 26 Aug 2002 06:03:02 -0400 (EDT)
|
|