I have this XML document:
As suggested in a comment, I post a solution. The example use XSLT 3.0 with Saxon 9.5 (needs PE or EE version):
With an input of
bank ABKZKZKX 319 AA "A BANK" BB "B BANK" ABNAKZKX 922 CC "C BANK" DD "D BANK" ]]>
the result is
AA "A BANK" CC "C BANK"