This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
defaulting empty node to zero
- From: Chuck Paussa <cpaussa at myrealbox dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 24 May 2002 13:03:02 -0700
- Subject: [xsl] defaulting empty node to zero
- References: <200205231749.NAA21319@biglist.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
I want to find the numeric value of a node. If the node is empty (e.g.:
<taxAmount/>) I want zero. I also want zero when applying sum() to the
same or a set of similar nodes.
Is there a solution to this problem other than setting a variable, check
the variable = NaN, return the variable or zero?
Chuck
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list