Loop step

I have a document which looks like

Transaction container
some elments

Transaction
Transaction[0]
Transaction[1]
Transaction[2]

the in-array for my loop statement is /doc/TransactionContainer/Transaction

if my out-array is specifies as
/temp/TransactionContainer/Transaction,

it does not map the doc to temp and all Transaction[i] in temp doc are null. what could be the reason for this?

If your original document list and temp doc list is having similar structure,the directly map the root elements,your temp Document list structure will hold the values and work fine.

or else create a temp Document(remember not Documentlist) and do a loop on your in-array as you have specified(is /doc/TransactionContainer/Transaction )
and inside the loop map each iteration of Transaction[i] to this temp Document in a map step and immdiately invoke pub.list:appendToDocumentList and service and trick is drop the temp Document after appending to your temp original DocumentList.

HTH

thanks, RMG. the stuff works other ways but i couldnt figure out why it didnt in the loop statement.
mow