Counters and XML

admin

Administrator
Staff member
Is it possible to use a counter with XML so that each time a tag is output, the counter increases? I tried this and gave up. The counter was only incremented once, even though the tag in question was output many times.

I'm using PHP to generate XHTML before and after the content of each tag. This is done with an array. Then I output the lot, adding the data between the XML tags as well.

I'm not skilled enough to use XSLT yet, so forgive me.

Is there a way?
 
Back
Top