Updated
I have some huge data, which becomes a large table say table parent
each table parent\'s row will
The notion of an increment is foreign to XSLT as a functional language. However, you could just count the number of preceding elements:
<xsl:value-of select="count(preceding-sibling::ORSReposTableTypeInd1)"/>
Depending on your document layout, this might get more complicated, your milage may vary.
I have same problem and simplest way to solve it is to use Saxon. Here you can find my solution Incrementing and checking the counter variable in XSLT
Use position(). Since you are incrementing this once per for-each why don't you simply use position()?
<a name="_ORS$counter" href="#_top">ORSReposColumAllWithTableTypeInd1:<xsl:value-of select="position()"/> </a>
What about using:
<xsl:number/>
See http://www.w3.org/TR/xslt#number
There are various ways to include it as attributes into your anchor tag.
Option 1: Using variables
<xsl:variable name="number">
<xsl:number/>
</xsl:variable>
<a name="{$number}">blabla</a>
Option 2: xsl:attribute
<a>
<xsl:attribute name="name">
<xsl:number/>
</xsl:attribute>
</a>