I am processing an XML file where I want to keep count of the number of nodes, so that I can use it as an ID as I write new nodes.
At the moment I have a global vari
Variables in XSLT are immutable so you have to approact the problem with that in mind. You could either use position() directly:
position()
Or in a more template orientated way: