//para selects all the para descendants of the document root and thus selects all para elements in the same document as the context node <?xgrep-match [xgrep-test1.xml]--------------------------------?> <para name="para1" type="zzz"> something <div><para name="para1b"/></div> </para> <?xgrep-match [xgrep-test1.xml]--------------------------------?> <para name="para1b"/> <?xgrep-match [xgrep-test1.xml]--------------------------------?> <para name="para2" type="warning"/> <?xgrep-match [xgrep-test1.xml]--------------------------------?> <para name="para3"/> <?xgrep-match [xgrep-test1.xml]--------------------------------?> <para name="lastPara" type="warning"/>