Re: Xpath for validating if href in xref element is pointing to <fn> element #XSLT


Shaurabh
 

Hi Chris,

I am not trying to validate if all footnotes are used or not. I am just trying to find the count for all xrefs which are targeting to footnotes. As i said earlier, I am able to find the count for all xrefs being used inside <tgroup> irrespective of their target element using below xpath-

<xsl:variable name="fnXCount" select="count($prmElement/descendant::*[contains(@class,' topic/xref ')][@href])"/>

  But i want the total count for only those xrefs which are pointing to <fn> element.


Thanks,
Shaurabh

Join main@dita-users.groups.io to automatically receive all group messages.