XPath 1.0 had almost no type errors: if an expression was syntactically valid, it returned a result. “"3" + 1” = 4, “"Tuesday" + 1” = NaN, etc.
In XPath 2.0 this is not the case. Errors will terminate the evaluation of an expression, stylesheet, or query.
XPath 2.0 adds new operators that allow you to test if an operation will succeed.