Subject:XSLT Help to get value from Upper Node by comparing the value from the present Context Author:Hari Krishna Date:01 May 2008 11:26 AM Originally Posted: 01 May 2008 10:54 AM
I am basic user and having problems reading the value from the upper node. Like i explain below, How to compare value with the 2level above the context with the present value and get populated at the present level.
These two and get the following field from ITEM node
../../Item/Product/InternalID
At the Handling Units , i am writing all values by looping, Based on BusinessTransactionDocumentReference/ItemID , i go up 2 levels and get the matching value
I have 3 fields like these
<PedManufacturer>
<xsl:value-of select="../../Item/Product/VendorID"/>
</PedManufacturer>
<PedProductCode><xsl:text>SAP PedProductCode</xsl:text>
<Code>
<xsl:value-of select="BusinessTransactionDocumentReference/ItemID"/>
</Code>
</PedProductCode>
One more Sub node, i need to get 2 more fields like the above
<PedItemInfo>
<PedLot>
<xsl:value-of select="../Item/Batch/InternalID"/>
</PedLot>
<PedExpirationDate>
this will be current date
</PedExpirationDate>
Attaching XSLT Map, with Source and an Example of Output.