In relation to my question
position()
function returns the position of actual node in whole document , how to get the position
with respect to selected nodes. Lets say I have list of 100 cities and I exclude 10 based on given filter list (please see the question) now the I I want to get the counting based on the selected nodes not the original document positions .
In simple terms this is a counter/increment issue as I see counter are not possible . How could we create or use existing function to like position() to get the position of node in selected nodes.
I hope my question is clear .
edit example scenario
<xsl:template match="/">
<xsl:apply-templates select="db:databaseChangeLog/db:changeSet[*[1][($excludes eq '' or not(@tableName = tokenize($excludes, ',')))]]"/>
</xsl:template>
<xsl:template match="db:changeSet">
...
</xsl:template>
Where I am selecting parent node based on the child node attribute name.