You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Nested for each in data mapping duplicate information

edited Jul 3, 2024 2:52AM in Integration 1 comment

I try to use nested for each in data mapping to iterate complex nodes, complex nodes look like this:


In the data mapping I have created something like this:

<ns21:a>
<xsl:for-each select="/nssrcmpr:execute/nssrcdfl:request-wrapper/nssrcdfl:locations">
<xsl:variable name='currLocation' select='.'/>
<xsl:for-each select="/nssrcmpr:execute/nssrcdfl:request-wrapper/nssrcdfl:locations/nssrcdfl:Addresses">
<xsl:variable name="currAddress" select="."/>
<ns21:b>
<ns21:location_name>
<xsl:value-of select="$currLocation/nssrcdfl:location_name"/>
</ns21:location_name>
<ns21:location_refnum>
<xsl:value-of select="$currLocation/nssrcdfl:location_refnum"/>
</ns21:location_refnum>
<ns21:Address_line>
<xsl:value-of select="$currAddress/nssrcdfl:Address_line"/>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!