On 30/09/2011 10:43, Andrew Welch wrote:
I've recently found out (over on the saxon list) that:
() eq ()
returns the empty sequence, but
() = ()
returns false.
To add a little footnote, a couple of weeks ago I had a user who had written
test="contains(a,b) = false"
and in 1.0 this produced the same result as if he had written
test="contains(a,b) = false()"
because in 1.0, when you compare a node-set to a boolean you convert the
node-set to a boolean and compare the two booleans, and the node-set
false will usually convert to the boolean false(). But in 2.0 his code
stopped working because the rules for comparing a node-set to a boolean
changed, the WG imagining very few users would do this intentionally...
Michael Kay
Saxonica
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--