Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rahul 1 post 71 karma points
    Sep 21, 2016 @ 18:32
    rahul
    0

    Compare 2 XML and call id in main xml in sucess is true

    Hi,

    I have 2 XML. result.XML and name.xml. I am comparing both XML and calling

    result.xml:

    Name.xml:

    XSLT:

    <xsl:template mode="insert" match="Names">
        <xsl:copy-of select="../../Name"/>
    </xsl:template>
    
    <xsl:template match="@* | node()">
        <xsl:copy>
            <xsl:apply-templates select="@*"/>
            <xsl:apply-templates mode="insert" select="."/>
            <xsl:apply-templates mode="inserta" select="."/>
            <xsl:apply-templates/>
        </xsl:copy>
    </xsl:template>
    
    <xsl:template mode="insert" match="*"/>
    <xsl:template mode="inserta" match="*"/>
    
    
    <xsl:template match="@* | node()">
        <xsl:copy>
            <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
    </xsl:template>
    

    Expected Output:

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies