I have a test.dita file which consists of a table element as shown below. As you can see few cells inside <tgroup> element consists of xref element which are targeting to <fn> element. I want to have total count of <xref> elements targeting to <fn> element. I am able to have the count of xref elements having href attribute using below xpath-