Needs some help. In umbraco I have my tree like this
-First
- page 1
- page 2
- page 3
- page 4
- page 5
- page 6
- page 7
- page 8
- page 9
- page 10
- page 11
- page 12...
looping all the pages i filter them. So I apply my xslt only to pages 4,7,10 position() will give me 4,7,10 How can I count the number of pages i walked through? (in this example 3) Here's my xslt:
<xsl:param name="currentPage"/>
<xsl:variable name="root" select="$currentPage/ancestor-or-self::* [@isDoc][last()]"/>
<xsl:variable name="articles" select="$root/descendant-or-self::* [@isDoc][@level=2]"/>
<xsl:template match="/">
<xsl:for-each select="$articles">
<xsl:if test="./* [@isDoc and string(umbracoNaviHide)!='1' and local-name(current())='myfilteredpage']">
...some html construction...
</xsl:if>
</xsl:for-each>
</xsl:template>
Thank you for your help. Benjamin
PS: found those link that helped me to build the pagination but my counter isn't resolved