[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] sorting the result of a calculation on xml that can ha
Thanks Michael for the answer. I ran out of time and used format-number() in the calculation - the problem was I had '#' instead of '0': <xsl:decimal-format name="MyDecimalFormat" NaN="0" /> ... (format-number(HomePupils, '0', 'MyDecimalFormat') This also covers converting NaN to zero... Sean > Dealing with missing elements and empty elements are actually two slightly > different problems. > > However, to get a default value of "0", > > number(concat('0', string(HomePupils))) > > works in both cases. > > Michael Kay > ... > > I tried using format-number() to replace blanks with '0' and even 'number(0)', but when the output > > of format-number is used in a calculation, the result is NaN. > > ___________ Sean Ryan
|
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
|