echo chapter[title] selects the chapter children of the context node that have one or more title children
../xgrep "/xgrep-test/doc/chapter[title]" xgrep-test1.xml

