# Mutiple input documentlists mapped to one output document list

**URL:** <https://techcommunity.softwareag.com/t/mutiple-input-documentlists-mapped-to-one-output-document-list/110306>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [August 13, 2011, 5:01pm UTC](https://techcommunity.softwareag.com/t/mutiple-input-documentlists-mapped-to-one-output-document-list/110306 "2011-08-13T17:01:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalyani\_BS](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@Kalyani\_BS](https://techcommunity.softwareag.com/u/Kalyani_BS)\
**Post date:** [August 13, 2011, 5:01pm UTC](https://techcommunity.softwareag.com/t/mutiple-input-documentlists-mapped-to-one-output-document-list/110306/1 "2011-08-13T17:01:15Z")

</div>

Hi All,

Can someone help me in the below scenario

I have a scenario where in My input is ItemTextHeader is a document list and i looped over it and it has an element languageKey mapped to custom-attribute a document list which has a field @xml:lang.

For the sampe output custom-attribute a document list which has other fields @name,@dt:dt,\*body which are mapped to other document list ItemDescriptionDetails so it is a different loop again.

ItemTextHeader and ItemDescriptionDetails are different loops mapped to different strings inside same output document list.

How to combine the @xml:lang and @name,@dt:dt,\*body into output custom-attribute and loop over the inputs and get multiple outputs.

Please let me know if i am confusing.

Thanks in advance  
Kalyani

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [August 15, 2011, 8:35pm UTC](https://techcommunity.softwareag.com/t/mutiple-input-documentlists-mapped-to-one-output-document-list/110306/2 "2011-08-15T20:35:06Z")

</div>

Not understood fully…

But based on above did you try map/create one temp document (fields) loop over both and then at the end appendToDocumentlist (one main)?

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:06pm UTC](https://techcommunity.softwareag.com/t/mutiple-input-documentlists-mapped-to-one-output-document-list/110306/3 "2021-04-02T15:06:06Z")

</div>


