I’ve created a new branch for removal of literal element paths. This branch pretty much fixes recursion loops but has the problem that it can’t exactly mimic find
(1) output for elements with a target loop: the LIST
of the element path will stop at the node where the loop is detected which may really be in a child of the target node. For example, the pseudo-document:
a<TAB>b<TAB>c -> c
c<TAB>d -> a
c<TAB>e
won’t show a->b->c->d
or a->b->c->e
in LIST
output. It will stop at a->b->c
with a target loop flag appended.