|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: A - B
thanks, but if i have this XML : <A>37</A> <B/> and my XSL : <xsl:decimal-format NaN="0" name="forme1" decimal-separator="," grouping-separator=" " /> the result is 0 but i expect 37. i've been suggested to use <xsl:value-of select="format-number(concat('0',11) - concat('0',1), '# ##0,00','forme1')" /> or <xsl:value-of select="format-number(number(concat('0',11)) - number(concat('0',1)), '# ##0,00','forme1')" /> but it is a bit complicated... isn't there something more simple... To Marrow : i faced troubles while using sum with the tag <B/> i revieve "NaN" other suggestions ?? Thank. Michael Leditschke a écrit: Typically there's some special value you want in the case where A and/or B don't exist or are not numeric. 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
|

Cart








