Hi,
All i need to Solve the Below Scenario. Please Help..I am Trying to get rid of this more that 3 days...
I am trying to map with the above Looping situation. I have flat target schema (CSV) .I have Loops on source (DetailLoop1, InnerDetailLoop and then DetailLoop2). DetailLoop1 and DetailLoop2 are in parallel hierarchies. From DetailLoop2 I am mapping the field DL2Field5 to the target field Field5. However this mapping should occur based on the match of value of fields DL1PK (rpimary key) of DetailLoop1 and DL1PK field of DetailLoop2. And the rest of the fields of Detail Loop1 should get mapped to the same record on the target side based on appropriate match condition.
With the above mapping it works for only one match. Does not work for the rest. Tried putting looping functoid. That results in the Field5 not getting mapped at all (i.e no match happens). Any Ideas how to do this. If XSLT is the only option , cud you please provide a pseudo code/sample.Thanks!
<Header>
<HField1>HField1_0</HField1>
<HField2>HField2_0</HField2>
</Header>
<DetailLoop1>
<DL1Field3>DL1Field3_1</DL1Field3>
<DL1Field4>DL1Field4_1</DL1Field4>
<DL1PK>MatchValue1</DL1PK>
</DetailLoop1>
<DetailLoop1>
<DL1Field3>DL1Field3_2</DL1Field3>
<DL1Field4>DL1Field4_2</DL1Field4>
<DL1PK>MatchValue2</DL1PK>
</DetailLoop1>
<DetailLoop2>
<DL2Field5>DL2Field5_1</DL2Field5>
<DL2Field6>DL2Field6_1</DL2Field6>
<DL1PK>MatchValue1</DL1PK>
</DetailLoop2>
<DetailLoop2>
<DL2Field5>DL2Field5_2</DL2Field5>
<DL2Field6>DL2Field6_2</DL2Field6>
<DL1PK>MatchValue2</DL1PK>
</DetailLoop2>
(I need to use only the XSLT, i have the Solution using the Mapper, but it degrades my Performance)
Thanks, - Bharath