Hi,
I am trying to combine two messages (took some help from Sandro's blogs) for merging data. My head is still not around XSLT and am not able to get the desired result. Can anyone suggest me the way or in particular the probable xslt template that I need to put across. Thanks in advance.
Message 1 ========= <EmployeeLookup> <EmployeeQuery> <MsgId>XXX</MsgId> <LookupValues> <LookupValue> <Name>SSN</Name> <Value>123456</Value> </LookupValue> <LookupValue> <Name>DrivingLicense</Name> <Value>AA-234-123</Value> </LookupValue> </LookupValues> </EmployeeQuery> <EmployeeQuery> <MsgId>YYY</MsgId> <LookupValues> <LookupValue> <Name>SSN</Name> <Value>456677</Value> </LookupValue> </LookupValues> </EmployeeQuery> <EmployeeQuery> <MsgId>ZZZ</MsgId> <LookupValues> <LookupValue> <Name>SSN</Name> <Value>fakessn</Value> </LookupValue> </LookupValues> </EmployeeQuery> </EmployeeLookup> Message 2 =========
<KnownEmployees> <Employee> <eno>101</eno> <SSN>123456</SSN> <DrivingLicense>AA-234-123</DrivingLicense> </Employee> <Employee> <eno>102</eno> <SSN>456677</SSN> <DrivingLicense>BB-494-432</DrivingLicense> </Employee> </KnownEmployees>
Message 3 ========= <CombinedResult> <Employee> <MsgId>XXX</MsgId> <RetrievedIds> <Identifier> <Name>eno</Name> <Value>101</Value> </Identifier> </RetrievedIds> </Employee> <Employee> <MsgId>YYY</MsgId> <RetrievedIds> <Identifier> <Name>eno</Name> <Value>102</Value> </Identifier> </RetrievedIds> </Employee> <Employee> <MsgId>ZZZ</MsgId> <RetrievedIds /> </Employee> </CombinedResult>I am of course using a map which is created inside an orch so that we can have multiple sources and writing to destination.