Hello there:
I have a source message which can have a collection of Address nodes
say Shipping, Billing, Mailing etc depicted by AddressType attribute.
Here is how source looks:
...
...
...
Now I have to select ONLY Billing address to the destination message.
I have used a logical functiod "Equal (=)" with value mapping at the
Address level node and mapped it to the destination Address level
node. In the equal I am checking if AddType is "Billing" then Value
Mapping functiod should create the destination Address node. But
somehow, this doesn't seem to work as I get three nodes created in the
output as opposed to only one. I was wondering do I need to have this
check at every single mapping of the address element?
Any suggestions on how to accomplish this through functoids or xslt?
Thanks in advance.
Maam.
|
|