This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Node set comnparison
- To: Nick Browne <NickBrowne at slipstone dot co dot uk>
- Subject: Re: Node set comnparison
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Thu, 16 Nov 2000 10:36:34 +0000
- CC: "xsl-list at mulberrytech dot com" <xsl-list at mulberrytech dot com>
- Organization: Jeni Tennison Consulting Ltd
- References: <3A130956.671F5982@slipstone.co.uk>
- Reply-To: xsl-list at mulberrytech dot com
Nick,
> ... and it does. If I add a new value element to set2 with content of
> 'abc' should this change the result ? I don't think so as 'abc' should
> convert to NaN which will cause any boolean test to fail though my tests
> seem to show otherwise.
The tests test whether there are *any* nodes in one set that have a
value greater than *any* node in the other set. Adding the value
'abc' to either set should not make a difference, and doesn't seem to
in Saxon 5.4.1 or MSXML3(Release). What processor are you using
that's giving the problem?
If you adding <value>4</value> to set1, on the other hand, then both
$set1 > $set2 and $set2 > $set1 would be true.
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list