hi i would like to get the count of a for loop outside the loop
here is a sample code
Code:
<xsl:for-each select="Car">
<xsl:variable name="level" select="position()"/>
</xsl:call-template>
i would like the number of cars to be stored in a hidden variable on my jsp page. here i can include the hidden field inside the loop with last() called but that will repeat the hidden field the number of times the Car tag is present.
can some one tell me how to acccess the total from outside the for loop
thanks