Help for this page
for &{ sort :d :k count(ancestor::*) //mml:msub } ls . ;
<mml:msub>swift</mml:msub> ... </mml:msub> Found 1 node(s).
#!/usr/bin/perl use warnings; ... sort { $b->[1] <=> $a->[1] } map [ $_, $_->findvalue('count(ancestor::*)')], $xml->findnodes('//mml:msub');