Nested for each in data mapping duplicate information
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"/>
Tagged:
0