In my source schema I have two nodes:
<ContactName>Jones</ContactName>
<ManagerName>Smith</ManagerName>
and I'm mapping to:
<Persons>
<Person>
<PA1 PersonType=something? />
<PA2 PersonName=somethingelse? />
</Person>
</Persons>
and I want the output to be:
<Persons>
<Person>
<PA1 PersonType="Contact" />
<PA2 PersonName="Jones" />
</Person>
<Person>
<PA1 PersonType="Manager" />
<PA2 PersonName="Smith" />
</Person>
</Persons>
I have a loop that connects <ContactName> and <ManagerName> on the left, and <Person> on the right. It processes the PersonName attribute correctly (creating and populating two structures), but I can't for the life of me figure out how to hard code the PersonType attribute depending on whether I'm processing the <ContactName> or the <ManagerName>.
Any help would be greatly appreciated!