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

