<novel title="A Tale of Two Cities"> <tilepage> ... </titlepage> <book num=1> <chapter num=1 title="The Period"> ... </chapter> ... </book> ... </novel>
set PrintStructures
command to display novel, chapter,
... for each match
> set PrintStructures "novel_title, chapter_num";
> A = [lemma = "ghost"];
> cat A;
> B = [pos = "NP"] [pos = "NP"] ::
match.novel_title = "David Copperfield";
> group B matchend lemma by match lemma;
(note that <novel_title = "...">
cannot be used in this case because
the XML start tag of the respective <novel> region will usually be
far away from the match)
> group A match novel_title;