Peter Haslam - 2013-12-12

In the following pseudo-code, what would be the Web-Harvest way of creating a new save-file for what is harvested from each of the URLs read from file.with.list.of.URLs (in principle: $increment_with_each_new_URL++;). I'm sure it's ridiculously simple, but I haven't been able to find details, just generalities about user-variables.

?xml version="1.0" encoding="UTF-8"?

config charset="UTF-8"
var-def name="content"
html-to-xml
file action="read" path="file.with.list.of.URLs" type="text"/file
/html-to-xml
/var-def
loop item="currUrl"
list
xpath expression="//a/@href"
var name="content"/
/xpath
/list
body
file action="write" path="$increment_with_each_new_URL.txt" type="text"
http url="${currUrl}"/
/file
/body
/loop
/config

Many thanks in advance!