summaryrefslogtreecommitdiff
path: root/result/XPath/tests
diff options
context:
space:
mode:
Diffstat (limited to 'result/XPath/tests')
-rw-r--r--result/XPath/tests/chaptersbase115
-rw-r--r--result/XPath/tests/chaptersprefol100
-rw-r--r--result/XPath/tests/idsimple33
-rw-r--r--result/XPath/tests/simpleabbr81
-rw-r--r--result/XPath/tests/simplebase73
-rw-r--r--result/XPath/tests/usr1check12
-rw-r--r--result/XPath/tests/vidbase42
7 files changed, 456 insertions, 0 deletions
diff --git a/result/XPath/tests/chaptersbase b/result/XPath/tests/chaptersbase
new file mode 100644
index 0000000..03c6567
--- /dev/null
+++ b/result/XPath/tests/chaptersbase
@@ -0,0 +1,115 @@
+
+========================
+Expression: /child::EXAMPLE
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT EXAMPLE
+ ATTRIBUTE prop1
+ TEXT
+ content=gnome is great
+ ATTRIBUTE prop2
+ TEXT
+ content=& linux too
+
+========================
+Expression: /child::*
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT EXAMPLE
+ ATTRIBUTE prop1
+ TEXT
+ content=gnome is great
+ ATTRIBUTE prop2
+ TEXT
+ 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 6 nodes:
+1 ELEMENT head
+2 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter1
+3 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter2
+4 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter3
+5 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter4
+6 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter5
+
+========================
+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
+
+========================
+Expression: /child::EXAMPLE/child::head/node()
+Object is a Node Set :
+Set contains 3 nodes:
+1 TEXT
+ content=
+2 ELEMENT title
+3 TEXT
+ content=
+
+========================
+Expression: /descendant::title
+Object is a Node Set :
+Set contains 6 nodes:
+1 ELEMENT title
+2 ELEMENT title
+3 ELEMENT title
+4 ELEMENT title
+5 ELEMENT title
+6 ELEMENT title
+
+========================
+Expression: /descendant::p/ancestor::chapter
+Object is a Node Set :
+Set contains 5 nodes:
+1 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter1
+2 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter2
+3 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter3
+4 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter4
+5 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter5
diff --git a/result/XPath/tests/chaptersprefol b/result/XPath/tests/chaptersprefol
new file mode 100644
index 0000000..a12c937
--- /dev/null
+++ b/result/XPath/tests/chaptersprefol
@@ -0,0 +1,100 @@
+
+========================
+Expression: /following::*
+Object is a Node Set :
+Set contains 0 nodes:
+
+========================
+Expression: /preceding::*
+Object is a Node Set :
+Set contains 0 nodes:
+
+========================
+Expression: /child::EXAMPLE/preceding::*
+Object is a Node Set :
+Set contains 0 nodes:
+
+========================
+Expression: /child::EXAMPLE/following::*
+Object is a Node Set :
+Set contains 0 nodes:
+
+========================
+Expression: /child::EXAMPLE/child::chapter[3]/preceding::*
+Object is a Node Set :
+Set contains 10 nodes:
+1 ELEMENT head
+2 ELEMENT title
+3 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter1
+4 ELEMENT title
+5 ELEMENT p
+6 ELEMENT image
+ ATTRIBUTE href
+ TEXT
+ content=linus.gif
+7 ELEMENT p
+8 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter2
+9 ELEMENT title
+10 ELEMENT p
+
+========================
+Expression: /child::EXAMPLE/child::chapter[3]/following::*
+Object is a Node Set :
+Set contains 6 nodes:
+1 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter4
+2 ELEMENT title
+3 ELEMENT p
+4 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter5
+5 ELEMENT title
+6 ELEMENT p
+
+========================
+Expression: /child::EXAMPLE/child::chapter[1]/image/preceding::*
+Object is a Node Set :
+Set contains 4 nodes:
+1 ELEMENT head
+2 ELEMENT title
+3 ELEMENT title
+4 ELEMENT p
+
+========================
+Expression: /child::EXAMPLE/child::chapter[1]/image/following::*
+Object is a Node Set :
+Set contains 13 nodes:
+1 ELEMENT p
+2 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter2
+3 ELEMENT title
+4 ELEMENT p
+5 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter3
+6 ELEMENT title
+7 ELEMENT p
+8 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter4
+9 ELEMENT title
+10 ELEMENT p
+11 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter5
+12 ELEMENT title
+13 ELEMENT p
diff --git a/result/XPath/tests/idsimple b/result/XPath/tests/idsimple
new file mode 100644
index 0000000..891b52e
--- /dev/null
+++ b/result/XPath/tests/idsimple
@@ -0,0 +1,33 @@
+
+========================
+Expression: //*[@id="root"]
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT EXAMPLE
+ ATTRIBUTE id
+ TEXT
+ content=root
+ ATTRIBUTE prop1
+ TEXT
+ content=gnome is great
+ ATTRIBUTE prop2
+ TEXT
+ content=& linux too
+
+========================
+Expression: //*[@id="chapter2"]
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter2
+
+========================
+Expression: //*[@id="chapter5"]
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter5
diff --git a/result/XPath/tests/simpleabbr b/result/XPath/tests/simpleabbr
new file mode 100644
index 0000000..85da41a
--- /dev/null
+++ b/result/XPath/tests/simpleabbr
@@ -0,0 +1,81 @@
+
+========================
+Expression: /EXAMPLE
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT EXAMPLE
+ ATTRIBUTE prop1
+ TEXT
+ content=gnome is great
+ ATTRIBUTE prop2
+ TEXT
+ content=& linux too
+
+========================
+Expression: /EXAMPLE/head
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT head
+
+========================
+Expression: /EXAMPLE/chapter[1]
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT chapter
+
+========================
+Expression: //p
+Object is a Node Set :
+Set contains 2 nodes:
+1 ELEMENT p
+2 ELEMENT p
+
+========================
+Expression: //chapter/image
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT image
+ ATTRIBUTE href
+ TEXT
+ content=linus.gif
+
+========================
+Expression: //p/text()
+Object is a Node Set :
+Set contains 2 nodes:
+1 TEXT
+ content=bla bla bla ...
+2 TEXT
+ content=...
+
+========================
+Expression: //p/text()[position()=1]
+Object is a Node Set :
+Set contains 2 nodes:
+1 TEXT
+ content=bla bla bla ...
+2 TEXT
+ content=...
+
+========================
+Expression: //p/text()[position()=last()]
+Object is a Node Set :
+Set contains 2 nodes:
+1 TEXT
+ content=bla bla bla ...
+2 TEXT
+ content=...
+
+========================
+Expression: (//p/text())[position()=1]
+Object is a Node Set :
+Set contains 1 nodes:
+1 TEXT
+ content=bla bla bla ...
+
+========================
+Expression: (//p/text())[position()=last()]
+Object is a Node Set :
+Set contains 1 nodes:
+1 TEXT
+ content=...
diff --git a/result/XPath/tests/simplebase b/result/XPath/tests/simplebase
new file mode 100644
index 0000000..38fa144
--- /dev/null
+++ b/result/XPath/tests/simplebase
@@ -0,0 +1,73 @@
+
+========================
+Expression: /child::*
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT EXAMPLE
+ ATTRIBUTE prop1
+ TEXT
+ content=gnome is great
+ ATTRIBUTE prop2
+ TEXT
+ 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
+ ATTRIBUTE prop2
+ TEXT
+ 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
+
+========================
+Expression: /child::EXAMPLE/child::head/node()
+Object is a Node Set :
+Set contains 3 nodes:
+1 TEXT
+ content=
+2 ELEMENT title
+3 TEXT
+ content=
+
+========================
+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
diff --git a/result/XPath/tests/usr1check b/result/XPath/tests/usr1check
new file mode 100644
index 0000000..0308991
--- /dev/null
+++ b/result/XPath/tests/usr1check
@@ -0,0 +1,12 @@
+
+========================
+Expression: //ITEM[1]
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT ITEM
+ ATTRIBUTE monto
+ TEXT
+ content=50.12
+ ATTRIBUTE divisa
+ TEXT
+ content=DOL
diff --git a/result/XPath/tests/vidbase b/result/XPath/tests/vidbase
new file mode 100644
index 0000000..3c7b62f
--- /dev/null
+++ b/result/XPath/tests/vidbase
@@ -0,0 +1,42 @@
+
+========================
+Expression: id('chapter1')
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter1
+
+========================
+Expression: id('chapter3')
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT chapter
+ ATTRIBUTE id
+ TEXT
+ content=chapter3
+
+========================
+Expression: id('chapter1')/p
+Object is a Node Set :
+Set contains 4 nodes:
+1 ELEMENT p
+2 ELEMENT p
+3 ELEMENT p
+4 ELEMENT p
+
+========================
+Expression: id('chapter1')//p
+Object is a Node Set :
+Set contains 4 nodes:
+1 ELEMENT p
+2 ELEMENT p
+3 ELEMENT p
+4 ELEMENT p
+
+========================
+Expression: id('chapter1')/p[1]
+Object is a Node Set :
+Set contains 1 nodes:
+1 ELEMENT p