1 PASS //item[@id >= 2 and @id <= "4"]
2 PASS //item[@id >= 2 and @id <= 3]
3 PASS doc.evaluate("position(1)", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string 'position(1)' is not a valid XPath expression..
4 PASS doc.evaluate("not()", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string 'not()' is not a valid XPath expression..
5 PASS string-length(100)
6 PASS doc.evaluate("count(100)", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': Type conversion failed while evaluating the expression..
7 PASS doc.evaluate("adumbrate()", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string 'adumbrate()' is not a valid XPath expression..
8 PASS //item[@id mod 2 = 0] | //item[@id mod 3 = 0]
9 PASS doc.evaluate("//item | 42", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': Type conversion failed while evaluating the expression..
10 PASS doc.evaluate("/doc/(item[@id = 2] | item[@id = 6])/@id", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string '/doc/(item[@id = 2] | item[@id = 6])/@id' is not a valid XPath expression..
11 PASS doc.evaluate('"monty"/anaconda', doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': Type conversion failed while evaluating the expression..
12 PASS doc.evaluate('/doc/string(item[@id = 2])/@id', doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string '/doc/string(item[@id = 2])/@id' is not a valid XPath expression..
13 PASS doc.evaluate('(1)[1]', doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': Type conversion failed while evaluating the expression..
24 PASS (//set[@id=1]/*) = (//set[@id=3]/*)
25 PASS (//set[@id=1]/*) = (//set[@id=2]/*)
26 PASS (//set[@id=1]/*) != (//set[@id=1]/*)
27 PASS (//set[@id=4]/*) != (//set[@id=4]/*)
28 PASS (//set[@id=1]/*) <= (//set[@id=2]/*)
29 PASS (//set[@id=2]/*) <= (//set[@id=1]/*)
30 PASS (//set[@id=1]/*) < (//set[@id=2]/*)
31 PASS (//set[@id=2]/*) < (//set[@id=1]/*)
32 PASS (//set[@id=2]/*) > (//set[@id=1]/*)
33 PASS (//set[@id=1]/*) > (//set[@id=2]/*)
34 PASS (//set[@id=2]/*) >= (//set[@id=1]/*)
35 PASS (//set[@id=1]/*) >= (//set[@id=2]/*)
36 PASS (//set[@id=4]/*) = (1 = 1)
37 PASS (//set[@id=4]/*) = (1 = 0)
38 PASS (//set[@id=4]/*) != (1 = 0)
39 PASS (//set[@id=4]/*) != (1 = 1)
40 PASS (//set[@id=4]/*) = 42
41 PASS (//set[@id=4]/*) = 43
42 PASS (//set[@id=4]/*) != 43
43 PASS (//set[@id=4]/*) != 42
44 PASS (//set[@id=4]/*) = "42.0"
45 PASS (//set[@id=4]/*) = "42"
46 PASS (//set[@id=4]/*) != "42"
47 PASS (//set[@id=4]/*) != "42.0"
60 PASS successfullyParsed is true