"sum" expects a node set, neither count(..) nor an addition return this.
Try replacing "+" by ",", perhaps that works:
<xsl:when test="13>=sum(count(./elections),count(./dependents))">
It could also be possible that the less than sign makes trouble; replace
">=13" by "&gt;12"

Markus

$> -----Ursprüngliche Nachricht-----
$> Von: Partridge, Michael [mailto:[EMAIL PROTECTED] 
$> Gesendet: Montag, 31. März 2003 17:15
$> An: [EMAIL PROTECTED]
$> Betreff: RE: xpath question
$> 
$> 
$> Thanks for the speedy reply, but the XSL processor built into XML Spy
$> replies:
$> 
$> [ERROR] Can not convert #NUMBER to a NodeList!
$> 
$> Mike
$> 
$> -----Original Message-----
$> From: [EMAIL PROTECTED] 
$> [mailto:[EMAIL PROTECTED]
$> 
$> Sent: Monday, March 31, 2003 9:11 AM
$> To: [EMAIL PROTECTED]
$> Subject: Re: xpath question
$> 
$> 
$> 
$> try
$> 
$> <xsl:when test="13>=sum(count(./elections)+count(./dependents))">
$> 
$> and it should work
$> 
$> 
$> greets
$> 
$> 
$> Jochen Maes
$> ICT Development
$> 
$> 
$> KBC Securities (kbcsecurities.com)
$> Havenlaan 12 Avenue du Port SIF 8683
$> B-1080 Brussels
$> Belgium
$>                                         
$>  Tel    :  +32 2 429 96 81              
$>                                         
$>  GSM    :  +32 496 57 90 99             
$>                                         
$>  E-mail :  [EMAIL PROTECTED] 
$>                                         
$>                                         
$> 
$> 
$> 
$> This message and any attachments hereto are for the named 
$> person's use
$> only. It may contain confidential, proprietary or legally privileged
$> information. You may not, directly or indirectly, use, disclose,
$> distribute, print, or copy any part of this message if you 
$> are not the
$> intended recipient. If you have received this e-mail message without
$> being
$> the intended recipient, please notify KBC Securities 
$> promptly and delete
$> this e-mail. Any views expressed in this message are those of the
$> individual sender, except where the message states otherwise and the
$> sender
$> is authorised to state them to be the views of KBC Securities. KBC
$> Securities reserves the right to monitor all e-mail communications
$> through
$> its networks and any messages addressed to, received or sent by KBC
$> Securities or its employees are deemed to be professional in 
$> nature. The
$> sender or recipient of any messages to or of KBC Securities 
$> agrees that
$> those may be read by other employees of KBC Securities than 
$> the stated
$> recipient or sender in order to ensure the continuity of work-related
$> activities and allow supervision thereof. KBC Securities 
$> does not accept
$> liability for the correct and complete transmission of the 
$> information,
$> nor
$> for any delay or interruption of the transmission, nor for damages
$> arising
$> from the use of, or reliance on, the information.
$> 
$> 
$> ---------------------------------------------------------------------
$> To unsubscribe, e-mail: [EMAIL PROTECTED]
$> For additional commands, e-mail: [EMAIL PROTECTED]
$> 
$> 
$> ---------------------------------------------------------------------
$> To unsubscribe, e-mail: [EMAIL PROTECTED]
$> For additional commands, e-mail: [EMAIL PROTECTED]
$> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to