chaptersrange 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ========================
  2. Expression: xpointer(//chapter[position() = 2]/range-to(following::chapter[1]))
  3. Object is a Location Set:
  4. 1 : Object is a range :
  5. From node
  6. ELEMENT chapter
  7. ATTRIBUTE id
  8. TEXT
  9. content=chapter2
  10. To node
  11. ELEMENT chapter
  12. ATTRIBUTE id
  13. TEXT
  14. content=chapter3
  15. ========================
  16. Expression: xpointer(//chapter[position() <= 2]/range-to(following::chapter[1]))
  17. Object is a Location Set:
  18. 1 : Object is a range :
  19. From node
  20. ELEMENT chapter
  21. ATTRIBUTE id
  22. TEXT
  23. content=chapter1
  24. To node
  25. ELEMENT chapter
  26. ATTRIBUTE id
  27. TEXT
  28. content=chapter2
  29. 2 : Object is a range :
  30. From node
  31. ELEMENT chapter
  32. ATTRIBUTE id
  33. TEXT
  34. content=chapter2
  35. To node
  36. ELEMENT chapter
  37. ATTRIBUTE id
  38. TEXT
  39. content=chapter3
  40. ========================
  41. Expression: xpointer(//chapter[position() = last()]/range-to(following::chapter[1]))
  42. Object is empty (NULL)
  43. ========================
  44. Expression: xpointer(//chapter[position() = 3]/range-to(/.//chapter[position() = 1]))
  45. Object is a Location Set:
  46. 1 : Object is a range :
  47. From node
  48. ELEMENT chapter
  49. ATTRIBUTE id
  50. TEXT
  51. content=chapter1
  52. To node
  53. ELEMENT chapter
  54. ATTRIBUTE id
  55. TEXT
  56. content=chapter3