Email Formatting issue

Hi,

I am sending an email with the list of all exception which i got while parsing a flat file. The scenario is as follow

I have one document list called Exception and i am looping thro it using
%loop Exception%. In this document list i have another document list called childErrors and i don’t know how best i can loop thro this document list. I tried following option but not able to display any of the key of child document list

%loop Exceptions% // Main document list

Error=%value $index% Line Number:%value errorPosition% %loop -struct childErrors% //Child Document list %loop –struct #$key% Reference:%value reference% %end% %end%

%end%

Thanks
Atul