Subject: Re: [xsl] Merging common tags of 2 xml files From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 6 Aug 2014 12:24:27 -0000 |
But I am sorry this is not the root element. There are few more elements above this one and if I do this then the whole xml is getting written twice. Is there anything else I can do?
<xsl:template match="/*"> <xsl:copy> <xsl:apply-templates select="@* , $doc2/*/node(), node()"/>
</xsl:copy> </xsl:template>
<xsl:template match="/root/foo/config"> <xsl:copy> <xsl:apply-templates select="@* , $doc2/root/foo/config, node()"/> </xsl:copy> </xsl:template>
<xsl:template match="config"> <xsl:copy> <xsl:apply-templates select="@* , $doc2//config, node()"/> </xsl:copy> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Merging common tags of 2 , varun bhatnagar varu | Thread | [xsl] Problems grouping nested item, Wegmann, Frank frank |
Re: [xsl] Merging common tags of 2 , varun bhatnagar varu | Date | [xsl] Problems grouping nested item, Wegmann, Frank frank |
Month |