How to get a counter inside xsl:for-each loop that would reflect the number of current element processed. For example my source XML is
Try inserting in the place of ???.
Note the "1. " - this is the number format. More info: here