1 2 ======================== 3 Expression: /following::* 4 Object is a Node Set : 5 Set contains 0 nodes: 6 7 ======================== 8 Expression: /preceding::* 9 Object is a Node Set : 10 Set contains 0 nodes: 11 12 ======================== 13 Expression: /child::EXAMPLE/preceding::* 14 Object is a Node Set : 15 Set contains 0 nodes: 16 17 ======================== 18 Expression: /child::EXAMPLE/following::* 19 Object is a Node Set : 20 Set contains 0 nodes: 21 22 ======================== 23 Expression: /child::EXAMPLE/child::chapter[3]/preceding::* 24 Object is a Node Set : 25 Set contains 10 nodes: 26 1 ELEMENT head 27 2 ELEMENT title 28 3 ELEMENT chapter 29 ATTRIBUTE id 30 TEXT 31 content=chapter1 32 4 ELEMENT title 33 5 ELEMENT p 34 6 ELEMENT image 35 ATTRIBUTE href 36 TEXT 37 content=linus.gif 38 7 ELEMENT p 39 8 ELEMENT chapter 40 ATTRIBUTE id 41 TEXT 42 content=chapter2 43 9 ELEMENT title 44 10 ELEMENT p 45 46 ======================== 47 Expression: /child::EXAMPLE/child::chapter[3]/following::* 48 Object is a Node Set : 49 Set contains 6 nodes: 50 1 ELEMENT chapter 51 ATTRIBUTE id 52 TEXT 53 content=chapter4 54 2 ELEMENT title 55 3 ELEMENT p 56 4 ELEMENT chapter 57 ATTRIBUTE id 58 TEXT 59 content=chapter5 60 5 ELEMENT title 61 6 ELEMENT p 62 63 ======================== 64 Expression: /child::EXAMPLE/child::chapter[1]/image/preceding::* 65 Object is a Node Set : 66 Set contains 4 nodes: 67 1 ELEMENT head 68 2 ELEMENT title 69 3 ELEMENT title 70 4 ELEMENT p 71 72 ======================== 73 Expression: /child::EXAMPLE/child::chapter[1]/image/following::* 74 Object is a Node Set : 75 Set contains 13 nodes: 76 1 ELEMENT p 77 2 ELEMENT chapter 78 ATTRIBUTE id 79 TEXT 80 content=chapter2 81 3 ELEMENT title 82 4 ELEMENT p 83 5 ELEMENT chapter 84 ATTRIBUTE id 85 TEXT 86 content=chapter3 87 6 ELEMENT title 88 7 ELEMENT p 89 8 ELEMENT chapter 90 ATTRIBUTE id 91 TEXT 92 content=chapter4 93 9 ELEMENT title 94 10 ELEMENT p 95 11 ELEMENT chapter 96 ATTRIBUTE id 97 TEXT 98 content=chapter5 99 12 ELEMENT title 100 13 ELEMENT p 101