VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/result/XPath/tests/chaptersbase@ 95312

Last change on this file since 95312 was 95312, checked in by vboxsync, 3 years ago

libs/{curl,libxml2}: OSE export fixes, bugref:8515

File size: 3.3 KB
Line 
1
2========================
3Expression: /child::EXAMPLE
4Object is a Node Set :
5Set contains 1 nodes:
61 ELEMENT EXAMPLE
7 ATTRIBUTE prop1
8 TEXT
9 content=gnome is great
10 ATTRIBUTE prop2
11 TEXT
12 content=& linux too
13
14========================
15Expression: /child::*
16Object is a Node Set :
17Set contains 1 nodes:
181 ELEMENT EXAMPLE
19 ATTRIBUTE prop1
20 TEXT
21 content=gnome is great
22 ATTRIBUTE prop2
23 TEXT
24 content=& linux too
25
26========================
27Expression: /child::EXAMPLE/child::head
28Object is a Node Set :
29Set contains 1 nodes:
301 ELEMENT head
31
32========================
33Expression: /child::EXAMPLE/child::*
34Object is a Node Set :
35Set contains 6 nodes:
361 ELEMENT head
372 ELEMENT chapter
38 ATTRIBUTE id
39 TEXT
40 content=chapter1
413 ELEMENT chapter
42 ATTRIBUTE id
43 TEXT
44 content=chapter2
454 ELEMENT chapter
46 ATTRIBUTE id
47 TEXT
48 content=chapter3
495 ELEMENT chapter
50 ATTRIBUTE id
51 TEXT
52 content=chapter4
536 ELEMENT chapter
54 ATTRIBUTE id
55 TEXT
56 content=chapter5
57
58========================
59Expression: /child::EXAMPLE/child::head/child::title
60Object is a Node Set :
61Set contains 1 nodes:
621 ELEMENT title
63
64========================
65Expression: /child::EXAMPLE/child::head/child::title/child::text()
66Object is a Node Set :
67Set contains 1 nodes:
681 TEXT
69 content=Welcome to Gnome
70
71========================
72Expression: /child::EXAMPLE/child::head/node()
73Object is a Node Set :
74Set contains 3 nodes:
751 TEXT
76 content=
772 ELEMENT title
783 TEXT
79 content=
80
81========================
82Expression: /descendant::title
83Object is a Node Set :
84Set contains 6 nodes:
851 ELEMENT title
862 ELEMENT title
873 ELEMENT title
884 ELEMENT title
895 ELEMENT title
906 ELEMENT title
91
92========================
93Expression: /descendant::p/ancestor::chapter
94Object is a Node Set :
95Set contains 5 nodes:
961 ELEMENT chapter
97 ATTRIBUTE id
98 TEXT
99 content=chapter1
1002 ELEMENT chapter
101 ATTRIBUTE id
102 TEXT
103 content=chapter2
1043 ELEMENT chapter
105 ATTRIBUTE id
106 TEXT
107 content=chapter3
1084 ELEMENT chapter
109 ATTRIBUTE id
110 TEXT
111 content=chapter4
1125 ELEMENT chapter
113 ATTRIBUTE id
114 TEXT
115 content=chapter5
116
117========================
118Expression: //p[1]
119Object is a Node Set :
120Set contains 5 nodes:
1211 ELEMENT p
1222 ELEMENT p
1233 ELEMENT p
1244 ELEMENT p
1255 ELEMENT p
126
127========================
128Expression: //p[0 div 0]
129Object is a Node Set :
130Set contains 0 nodes:
131
132========================
133Expression: //p[100000000000000000000]
134Object is a Node Set :
135Set contains 0 nodes:
136
137========================
138Expression: //p[-100000000000000000000]
139Object is a Node Set :
140Set contains 0 nodes:
141
142========================
143Expression: //chapter[true()][position() mod 2 = 1][true()][2]
144Object is a Node Set :
145Set contains 1 nodes:
1461 ELEMENT chapter
147 ATTRIBUTE id
148 TEXT
149 content=chapter3
150
151========================
152Expression: //chapter[true()][2][true()]
153Object is a Node Set :
154Set contains 1 nodes:
1551 ELEMENT chapter
156 ATTRIBUTE id
157 TEXT
158 content=chapter2
159
160========================
161Expression: //node()[false()]
162Object is a Node Set :
163Set contains 0 nodes:
164
165========================
166Expression: (//node())[false()]
167Object is a Node Set :
168Set contains 0 nodes:
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette