|
From: SourceForge.net <no...@so...> - 2009-08-19 11:19:40
|
Bugs item #2840232, was opened at 2009-08-19 11:19 Message generated for change (Tracker Item Submitted) made by tw2000 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2840232&group_id=17691 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: tw2000 (tw2000) Assigned to: Nobody/Anonymous (nobody) Summary: Sum function gives an error when an element is empty Initial Comment: 1.3dev, rev. 9767 When a sum function recieves an empty elemenrt it returns an error: FORG0001: cannot construct xs:double from 'xdt:untypedAtomic("")' The nodeset is selected by the following xpath: sum( (xdb:xcollection( $coll-path )/*[local-name() = $target-element]/*[ local-name() = 'data' ], 0) ) the error not shown if the xpath s changed to: sum( (xdb:xcollection( $coll-path )/*[local-name() = $target-element]/*[ local-name() = 'data' and not(. ='') ], 0) ) The reason for this error is one empty element <data/> which effetively is a NULL. I believe NULL values should be ignored. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2840232&group_id=17691 |