preceding-sibling::chapter[position()=1] selects the previous chapter sibling of the context node