Home | History | Annotate | Download | only in tests
      1 
      2 ========================
      3 Expression: /child::EXAMPLE
      4 Object is a Node Set :
      5 Set contains 1 nodes:
      6 1  ELEMENT EXAMPLE
      7     ATTRIBUTE prop1
      8       TEXT
      9         content=gnome is great
     10     ATTRIBUTE prop2
     11       TEXT
     12         content=& linux too
     13 
     14 ========================
     15 Expression: /child::*
     16 Object is a Node Set :
     17 Set contains 1 nodes:
     18 1  ELEMENT EXAMPLE
     19     ATTRIBUTE prop1
     20       TEXT
     21         content=gnome is great
     22     ATTRIBUTE prop2
     23       TEXT
     24         content=& linux too
     25 
     26 ========================
     27 Expression: /child::EXAMPLE/child::head
     28 Object is a Node Set :
     29 Set contains 1 nodes:
     30 1  ELEMENT head
     31 
     32 ========================
     33 Expression: /child::EXAMPLE/child::*
     34 Object is a Node Set :
     35 Set contains 6 nodes:
     36 1  ELEMENT head
     37 2  ELEMENT chapter
     38     ATTRIBUTE id
     39       TEXT
     40         content=chapter1
     41 3  ELEMENT chapter
     42     ATTRIBUTE id
     43       TEXT
     44         content=chapter2
     45 4  ELEMENT chapter
     46     ATTRIBUTE id
     47       TEXT
     48         content=chapter3
     49 5  ELEMENT chapter
     50     ATTRIBUTE id
     51       TEXT
     52         content=chapter4
     53 6  ELEMENT chapter
     54     ATTRIBUTE id
     55       TEXT
     56         content=chapter5
     57 
     58 ========================
     59 Expression: /child::EXAMPLE/child::head/child::title
     60 Object is a Node Set :
     61 Set contains 1 nodes:
     62 1  ELEMENT title
     63 
     64 ========================
     65 Expression: /child::EXAMPLE/child::head/child::title/child::text()
     66 Object is a Node Set :
     67 Set contains 1 nodes:
     68 1  TEXT
     69     content=Welcome to Gnome
     70 
     71 ========================
     72 Expression: /child::EXAMPLE/child::head/node()
     73 Object is a Node Set :
     74 Set contains 3 nodes:
     75 1  TEXT
     76     content=    
     77 2  ELEMENT title
     78 3  TEXT
     79     content=   
     80 
     81 ========================
     82 Expression: /descendant::title
     83 Object is a Node Set :
     84 Set contains 6 nodes:
     85 1  ELEMENT title
     86 2  ELEMENT title
     87 3  ELEMENT title
     88 4  ELEMENT title
     89 5  ELEMENT title
     90 6  ELEMENT title
     91 
     92 ========================
     93 Expression: /descendant::p/ancestor::chapter
     94 Object is a Node Set :
     95 Set contains 5 nodes:
     96 1  ELEMENT chapter
     97     ATTRIBUTE id
     98       TEXT
     99         content=chapter1
    100 2  ELEMENT chapter
    101     ATTRIBUTE id
    102       TEXT
    103         content=chapter2
    104 3  ELEMENT chapter
    105     ATTRIBUTE id
    106       TEXT
    107         content=chapter3
    108 4  ELEMENT chapter
    109     ATTRIBUTE id
    110       TEXT
    111         content=chapter4
    112 5  ELEMENT chapter
    113     ATTRIBUTE id
    114       TEXT
    115         content=chapter5
    116 
    117 ========================
    118 Expression: //p[1]
    119 Object is a Node Set :
    120 Set contains 5 nodes:
    121 1  ELEMENT p
    122 2  ELEMENT p
    123 3  ELEMENT p
    124 4  ELEMENT p
    125 5  ELEMENT p
    126