========================
Expression: xpointer(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: xpointer(id('chapter1')/p[1]/range-to(following-sibling::p[2]))
Object is a Location Set:
1 :   Object is a range :
  From node
    ELEMENT p
  To node
    ELEMENT p