hi i am relativly new to xml and was looking for some help,
Im transforming an xml document using a xslt ; i am now in need of a counter of some sort to remember the number of occurances of a particular tag. I am not sure if there is an easier way of doing counters but i was thinkin of using something like the following.
Set up a variable like:
and when i need to 'print' the value use something like:
the problem i am having is incrementing the value.
Im not sure how you would increment the value, also is the best way of utilising a counter or is there a better method.
Thanks for all your time
rxg00u
Im transforming an xml document using a xslt ; i am now in need of a counter of some sort to remember the number of occurances of a particular tag. I am not sure if there is an easier way of doing counters but i was thinkin of using something like the following.
Set up a variable like:
Code:
<xsl:variable name="X" select="1"/>
Code:
<xsl:value-of select="$X"/>
Im not sure how you would increment the value, also is the best way of utilising a counter or is there a better method.
Thanks for all your time
rxg00u