1 Querying in the following... 2 3 <div xmlns="http://www.w3.org/1999/xhtml" id="test"> 4 <span id="A"> 5 <span id="B"></span> 6 </span> 7 <span id="C"> 8 <span id="D"></span> 9 </span> 10 </div> 11 12 Query "ancestor::xhtml:span" from span#B 13 Result: span#A 14 Expected: span#A 15 SUCCESS 16 17 Query ".|ancestor::xhtml:span" from span#B 18 Result: span#A span#B 19 Expected: span#A span#B 20 SUCCESS 21 22 Query "ancestor::xhtml:span|." from span#B 23 Result: span#A span#B 24 Expected: span#A span#B 25 SUCCESS 26 27 Query "ancestor::xhtml:*[local-name()='span']" from span#B 28 Result: span#A 29 Expected: span#A 30 SUCCESS 31 32 Query ".|ancestor::xhtml:*[local-name()='span']" from span#B 33 Result: span#A span#B 34 Expected: span#A span#B 35 SUCCESS 36 37 Query "ancestor::xhtml:*[local-name()='span']|." from span#B 38 Result: span#A span#B 39 Expected: span#A span#B 40 SUCCESS 41 42 Query "(ancestor::xhtml:*[local-name()='span'])|." from span#B 43 Result: span#A span#B 44 Expected: span#A span#B 45 SUCCESS 46 47 Query "following::xhtml:*[local-name()='span']" from span#B 48 Result: span#C span#D 49 Expected: span#C span#D 50 SUCCESS 51 52 Query ".|following::xhtml:*[local-name()='span']" from span#B 53 Result: span#B span#C span#D 54 Expected: span#B span#C span#D 55 SUCCESS 56 57 Query "following::xhtml:*[local-name()='span']|." from span#B 58 Result: span#B span#C span#D 59 Expected: span#B span#C span#D 60 SUCCESS 61 62 63