SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
<xsl:value-of select="count(preceding-sibling::*) + 1" />
Edit - had a brain freeze there, position() is more straightforward!