[Home] [By Thread] [By Date] [Recent Entries]
Am 01.09.2020 um 14:41 schrieb Prady Prady prady.chin@xxxxxxxxx:
But I need to use only XSLT 1.0 Declare <xsl:param name="doc2" select="document('Orders_Part2.xml')"/> and a key <xsl:key name="order" match="order" use="order_number"/> then use <xsl:template match="order">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
<xsl:variable name="ordernumber" select="order_number"/>
<xsl:for-each select="$doc2">
<xsl:apply-templates select="key('order', $ordernumber)/amount"/>
</xsl:for-each>
</xsl:copy>
</xsl:template>plus the identity transformation <xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
|

Cart



