1 2 3 4 5 6
/chapter[1] //p //chapter/image //p/text() //p/text()[position()=1] //p/text()[position()=last()]