Hi,
I would like to count all nodes "source" of "word" that start with the string "ABC".
I can have multiple "word" inside a the element "wordGrp", as in
entry/section/following-sibling::wordGrp/word/following-sibling::source
For-each-group and a following count(current-group()) did not work for me, the XSLT processor returned
"A sequence of more than one item is not allowed as the first argument"
So what I currently have is
<xsl:for-each select="entry/section/following-sibling::wordGrp/word/following-sibling::source">
<xsl:if test="starts-with(., 'ABC/')">
<xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
And this prints a list of elements which comply to the condition. But I am unable to count how many.
Thank you very much for your help,
Larry