1 PASS //item[@id=last()]
2 PASS //item[position()=3]
4 FAIL id("c") incorrect length (expected 1, actual 0)
5 FAIL id(//reference) incorrect length (expected 3, actual 0)
6 PASS local-name(//self::node()[@id=7])
7 PASS number(//self::node()[@id=7]/attribute::*[local-name()="value"])
8 PASS local-name(/absent)
9 PASS namespace-uri(//self::node()[@id>5])
10 PASS //self::node()[@id and namespace-uri()="http://www.example.com/b"]
11 PASS namespace-uri(/absent)
12 PASS name(//self::node()[@id=7])
13 PASS //self::node()[name()="b:item"]
16 PASS string(//inconceivable)
24 PASS //para[string()="Two"]
25 PASS concat(//para, ":", //para[2])
26 PASS starts-with("foo-bar", "foo")
27 PASS starts-with("foo-bar", "bar")
28 PASS contains("foo-bar", "o-b")
29 PASS contains("foo-bar", "b-o")
30 PASS substring-before("foo::bar", "::")
31 PASS substring-before("foo::bar", "--")
32 PASS substring-after("foo::bar", "::")
33 PASS substring-after("foo::bar", "--")
34 PASS substring("12345", 2)
35 PASS substring("12345", 2, 3)
36 PASS substring("12345", 1.5, 2.6)
37 PASS substring("12345", 0, 3)
38 PASS substring("12345", 0 div 0, 3)
39 PASS substring("12345", 1, 0 div 0)
40 PASS substring("12345", -42, 1 div 0)
41 PASS substring("12345", -1 div 0, 1 div 0)
42 PASS substring("12345", 6, 1)
43 PASS substring("12345", 1, 0)
44 PASS string-length("12345")
45 PASS //para[string-length()=5]
46 PASS normalize-space(" one two ")
47 PASS //para[normalize-space() = "Four"]
48 PASS translate("abcdef", "abcde", "xyz")
60 PASS //*[lang("EN-US")]
61 PASS normalize-space((//text()[lang("jp")])[normalize-space()])
62 PASS string(number("-1e5"))
66 PASS string(//item[number()=4 div 2])
74 PASS string(round(0 div 0))
79 PASS string(number(".1."))
80 PASS string(number("..1"))
81 PASS string(number("1.."))
82 PASS string(number(".-1"))
83 PASS successfullyParsed is true