echo preceding-sibling::chapter[position\(\)=1] selects the previous chapter sibling of the context node
../xgrep "/xgrep-test/olist/preceding-sibling::chapter[position()=1]" xgrep-test1.xml

