Web scraping with column from varible



When data scraping from web page, is it possible to generate some of the columns from variables? Thanks.

eg, in the following code of extractmetadata, as there is some for each loop outside the data scraping, I need columns 2 to record the the number of loop.

   <column name='Column1' attr='text' exact='1' '>
		<webctrl class='cntanr' tag='li' />
   <column name='Column2' attr=XXX exact='1'>