File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libxml2 / result / XPath / xptr / strrange2
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, 8 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: xpointer(string-range(//p, 'test', 2))
Object is a Location Set:
1 :   Object is a range :
  From index 11 in node
    TEXT
      content=a simple test
  To index 13 in node
    TEXT
      content=a simple test

2 :   Object is a range :
  From index 11 in node
    TEXT
      content=multiple tests
  To index 13 in node
    TEXT
      content=multiple tests

3 :   Object is a range :
  From index 8 in node
    TEXT
      content=anced test
  To index 10 in node
    TEXT
      content=anced test


========================
Expression: xpointer(string-range(//p, 'test', 2, 2))
Object is a Location Set:
1 :   Object is a range :
  From index 11 in node
    TEXT
      content=a simple test
  To index 12 in node
    TEXT
      content=a simple test

2 :   Object is a range :
  From index 11 in node
    TEXT
      content=multiple tests
  To index 12 in node
    TEXT
      content=multiple tests

3 :   Object is a range :
  From index 8 in node
    TEXT
      content=anced test
  To index 9 in node
    TEXT
      content=anced test


========================
Expression: xpointer(string-range(//p, 'difficult', 1, 0))
Object is a Location Set:
1 :   Object is a collapsed range :
  index 3 in node
    TEXT
      content=a diff

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