Hi just a quick query

i have the following tags in my document

<row 1>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
</row 1>
<row 2>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
</row 2>

i need to number the "xxx" values withing the <row> and </row> tags.. So within each <row> </row> block the numbers should begin from 1 onwards.

example

<row 1>
<Unit colname="1" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="2" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="3" align="right"><p>ABCDEFGHI</p></Unit>
</row 1>
<row 2>
<Unit colname="1" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="2" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="3" align="right"><p>ABCDEFGHI</p></Unit>
</row 2>...and so on.

is this possible?