[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: A - B
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
|
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
|