It seems the problem was simply the precedence in the expression. The
statement that works is:
13>=(count(./elections)+count(./dependents))
notice the parentheses wrapping the sum of the counts. It turns out that
'>' is okay in XMLSpy although '<' is not, so to be consistent, it's
probably a good idea to always escape them ('>' => '>' and '<' =>
'<'). Thanks for your help Adam, Marcus, and Jochen!
-----Original Message-----
From: Adam Shelley [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 9:47 AM
To: [EMAIL PROTECTED]
Subject: RE: xpath question
Hello,
I'm not sure what xsl processor xml spy uses but i have found that some
xsl
processors don't like the '>' character and should be replaced with the
symbolic equivilant.
try using an >= instead of >= ?
Just a guess cause it doesn't look like that statement should be trying
to
return a nodelist.
-Adam
-----Original Message-----
From: Partridge, Michael [mailto:[EMAIL PROTECTED]
Sent: March 31, 2003 7:15 AM
To: [EMAIL PROTECTED]
Subject: 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]