Afternoon,
I have the following code sniplet in my xsl file that is returning an empty value for <DocumentNumberCopy>:
Code:
<AgentInvoiceLineCollection><xsl:for-each select="./AgentInvoiceLineCollection/AgentInvoiceLine">
<AgentInvoiceLine>
<DocumentNumberCopy>
<xsl: value-of select=".DocumentNumber"/>
</DocumentNumberCopy>
<LineNumber>
<xsl:value-of select="./LineNumber"/>
</LineNumber>
XML Tree:
XMLLandedCostingOutputMessageInfo
ShipmentDetails
AgentInvoiceCollection
AgentInvoice
DocumentType
DocumentNumber
DocumentDate
AgentInvoiceLine
DocumentNumberCopy
Looking for the correct xsl syntax that will copy (add) an attribute "DocumentNumber" and it's value (sitting below "AgentInvoice") to attribute "DocumentNumberCopy" under "AgentInvoiceLine".
I have also attached an image to try and explain.
Apologies if my XML terminology is not correct; pretty clueless when it comes to XML.
Your assistance much appreciated.