summaryrefslogtreecommitdiff
path: root/result/XPath/tests/simplebase
diff options
context:
space:
mode:
Diffstat (limited to 'result/XPath/tests/simplebase')
-rw-r--r--result/XPath/tests/simplebase37
1 files changed, 32 insertions, 5 deletions
diff --git a/result/XPath/tests/simplebase b/result/XPath/tests/simplebase
index db968d8d..2e9687c8 100644
--- a/result/XPath/tests/simplebase
+++ b/result/XPath/tests/simplebase
@@ -1,42 +1,69 @@
+
+========================
+Expression: /child::*
Object is a Node Set :
Set contains 1 nodes:
1 ELEMENT EXAMPLE
ATTRIBUTE prop1
TEXT
- content=gnome is great
+ content=gnome is great
ATTRIBUTE prop2
TEXT
- content=& linux too
+ content=& linux too
+
+========================
+Expression: /child::EXAMPLE
Object is a Node Set :
Set contains 1 nodes:
1 ELEMENT EXAMPLE
ATTRIBUTE prop1
TEXT
- content=gnome is great
+ content=gnome is great
ATTRIBUTE prop2
TEXT
- content=& linux too
+ content=& linux too
+
+========================
+Expression: /child::EXAMPLE/child::head
Object is a Node Set :
Set contains 1 nodes:
1 ELEMENT head
+
+========================
+Expression: /child::EXAMPLE/child::*
Object is a Node Set :
Set contains 2 nodes:
1 ELEMENT head
2 ELEMENT chapter
+
+========================
+Expression: /child::EXAMPLE/child::head/child::title
Object is a Node Set :
Set contains 1 nodes:
1 ELEMENT title
+
+========================
+Expression: /child::EXAMPLE/child::head/child::title/child::text()
Object is a Node Set :
Set contains 1 nodes:
1 TEXT
- content=Welcome to Gnome
+ content=Welcome to Gnome
+
+========================
+Expression: /child::EXAMPLE/child::head/node()
Object is a Node Set :
Set contains 1 nodes:
1 ELEMENT title
+
+========================
+Expression: /descendant::title
Object is a Node Set :
Set contains 2 nodes:
1 ELEMENT title
2 ELEMENT title
+
+========================
+Expression: /descendant::p/ancestor::chapter
Object is a Node Set :
Set contains 1 nodes:
1 ELEMENT chapter