General funky test

Rule2(
Rule1(a0 in doc element)
Rule1(a1 in doc element) Rule8(

match="a[@test='true']": a2 in doc element

)
Rule1(a3 in doc element with Rule3(match="emph": mixed) text)
Rule1( Rule2( Rule2(Some Rule4(match="b//b2/emph": mixed) text inside of b2 which is inside of b1 which is inside of b) ) )
Rule1(Some Rule3(match="emph": mixed) text inside of b)
Rule1( Rule10(

match="c/a[@test='true' and position()=1]": a0 in c0 element

) Rule9(

match="c/a": a1 in c0 element

) Rule8(

match="a[@test='true']": a2 in c0 element

) Rule7(

match="c/a[emph]": a2 in c0 element with Rule3(match="emph": mixed) text

) Rule2( Rule2( Rule2(f inside of e) ) ) Rule2( Rule2(f inside of d) ) ) )