Imported Upstream version 2.9.5_rc1
[platform/upstream/libxml2.git] / result / XPath / tests / simplebase
1
2 ========================
3 Expression: /child::*
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::EXAMPLE
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 2 nodes:
36 1  ELEMENT head
37 2  ELEMENT chapter
38
39 ========================
40 Expression: /child::EXAMPLE/child::head/child::title
41 Object is a Node Set :
42 Set contains 1 nodes:
43 1  ELEMENT title
44
45 ========================
46 Expression: /child::EXAMPLE/child::head/child::title/child::text()
47 Object is a Node Set :
48 Set contains 1 nodes:
49 1  TEXT
50     content=Welcome to Gnome
51
52 ========================
53 Expression: /child::EXAMPLE/child::head/node()
54 Object is a Node Set :
55 Set contains 3 nodes:
56 1  TEXT
57     content=    
58 2  ELEMENT title
59 3  TEXT
60     content=   
61
62 ========================
63 Expression: /child::EXAMPLE/attribute::prop1/self::node()
64 Object is a Node Set :
65 Set contains 1 nodes:
66 1  ATTRIBUTE prop1
67     TEXT
68       content=gnome is great
69
70 ========================
71 Expression: /child::EXAMPLE/attribute::prop1/self::*
72 Object is a Node Set :
73 Set contains 0 nodes:
74
75 ========================
76 Expression: /child::EXAMPLE/attribute::prop1/descendant-or-self::node()
77 Object is a Node Set :
78 Set contains 1 nodes:
79 1  ATTRIBUTE prop1
80     TEXT
81       content=gnome is great
82
83 ========================
84 Expression: /child::EXAMPLE/attribute::prop1/descendant-or-self::*
85 Object is a Node Set :
86 Set contains 0 nodes:
87
88 ========================
89 Expression: /child::EXAMPLE/attribute::prop1/ancestor-or-self::node()
90 Object is a Node Set :
91 Set contains 3 nodes:
92 1   /
93 2  ELEMENT EXAMPLE
94     ATTRIBUTE prop1
95       TEXT
96         content=gnome is great
97     ATTRIBUTE prop2
98       TEXT
99         content=& linux too
100 3  ATTRIBUTE prop1
101     TEXT
102       content=gnome is great
103
104 ========================
105 Expression: /child::EXAMPLE/attribute::prop1/ancestor-or-self::*
106 Object is a Node Set :
107 Set contains 1 nodes:
108 1  ELEMENT EXAMPLE
109     ATTRIBUTE prop1
110       TEXT
111         content=gnome is great
112     ATTRIBUTE prop2
113       TEXT
114         content=& linux too
115
116 ========================
117 Expression: /descendant::title
118 Object is a Node Set :
119 Set contains 2 nodes:
120 1  ELEMENT title
121 2  ELEMENT title
122
123 ========================
124 Expression: /descendant::p/ancestor::chapter
125 Object is a Node Set :
126 Set contains 1 nodes:
127 1  ELEMENT chapter
128
129 ========================
130 Expression: /child::EXAMPLE/attribute::prop2/preceding::text()
131 Object is a Node Set :
132 Set contains 0 nodes: