[xml] Counters in XSL?



-----BEGIN PGP SIGNED MESSAGE-----

Hello,
I'm wondering whether there's any way to implement something like a
counter in XSL.

Given
<xml>
     <record>...</record>
     <record>...</record>
     <record>...</record>
</xml>

I need to be able to convert it to something like
<xml>
     <record><id>0</id>...</record>
     <record><id>1</id>...</record>
     <record><id>2</id>...</record>
</xml>

Is this possible? Essentially, I need to convert something like the
above structure, where there are many records without ids, into a
HTML
form that enables the user to change distinct records and so I need
to
assign the fields unique names which I think is done most easily
using
integer counters...

Any help would greatly be appreciated.




Best regards,
 Gabriel


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBO/+p5sZa2WpymlDxAQEpMggAmGnriat4DLISZeLMEkjZgXyyffHJ6Ngu
pqkMwcc6JJQABvL7znZOn27ZdcG3j8ZkQwn2RxsT28dmQlwerhAFqjN/RZwG+m6b
ZCf+JNkRNcT3rVdMYUA3u0JTJ8VyAELnYQsZayEJ/l9zfwrET4yq8WEGDdRlHu4T
SJJ5coDKqa5lB9qO//gQQn19i8ZokkLyPEGXEkEmyJTi4k+I79IOYcLoUc0ZtG/l
c6f4pu+BwEklK6Vl1w3t6KYxiz2giuLHH0EJK90SxfWWFYDWGPurXFVHExKVziXJ
QbS/kTErbJ0HdpsO8EEpx3Mi24i2epoJU1kKJLAoL91tFmdgjxZyPg==
=A6jY
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]