Subject: Re: [xsl] Merge 2 xmls : Loop through one xml and get elements from second xml From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 1 Sep 2020 12:48:48 -0000 |
But I need to use only XSLT 1.0
<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>
<xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template>
================= Merge 2 xmls : Loop through one xml and get elements from second xml
I have 2 xmls(Orders_Part1.xml,Orders_Part2.xml). I have to build the 3rd xml ( Orders.xml) .
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Merge 2 xmls : Loop throu, Prady Prady prady.ch | Thread | Re: [xsl] Merge 2 xmls : Loop throu, Gayanthika Udeshani |
Re: [xsl] Merge 2 xmls : Loop throu, Prady Prady prady.ch | Date | Re: [xsl] Merge 2 xmls : Loop throu, Gayanthika Udeshani |
Month |