> But you still can’t compare it to another NaN (and get true). You can do deep-equal($x, xs:double('NaN') > > Ok this works, but I’d still vote for a > > fn:isNaN() > I've no objection in principle, but the WG is predisposed not to accept proposals for new functions if they could be easily written by a user. Michael Kay Saxonica