File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libxml2 / result / XPath / tests / chaptersprefol
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:38:02 2012 UTC (12 years, 5 months ago) by misho
Branches: libxml2, MAIN
CVS tags: v2_9_1p0, v2_9_1, v2_8_0p0, v2_8_0, v2_7_8, HEAD
libxml2


========================
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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>