3 PASS .//*[position() = 2]
6 PASS .//*[position() = 1]
7 PASS ./descendant-or-self::node()/child::*[position() = 2]
8 PASS descendant-or-self::node()/child::*[position() = 2]
10 PASS preceding::node()[1]
11 PASS preceding::node()[2]
12 PASS preceding::node()[3]
13 PASS preceding::node()/*[3]
14 PASS ancestor::node()[2]
15 PASS ancestor-or-self::node()[2]
16 PASS ancestor-or-self::node()[3]
17 PASS preceding::span[1]
18 PASS (preceding::span)[1]
19 PASS document.evaluate('p[@type="warning"][5]/@num', ROOT2, null, XPathResult.STRING_TYPE, null).stringValue is '6'
20 PASS document.evaluate('p[5][@type="warning"]/@num', ROOT2, null, XPathResult.STRING_TYPE, null).stringValue is '5'
21 PASS successfullyParsed is true