I have a got two XML variables and below are sample data in it:
$Variable1:
<Group>
<A>Test</A>
<B>Test1</B>
.....
.....
.....
</Group>
$Variable2:
<Data>
<ABC>Test</ABC>
<XYZ>Test1</XYZ>
.....
.....
.....
</Data>
Now I want to merge these two variable in XSLT and use the output in same XSLT, so output will be something like below after merge :
<Group>
<A>Test</A>
<B>Test1</B>
.....
.....
.....
<ABC>Test</ABC>
<XYZ>Test1</XYZ>
.....
.....
.....
</Group>
Above output will be passed in same XSLT for further processing.
Below is the xslt sample, I have tried:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:param name="var1" select="document($Variable1)" />
<xsl:param name="var2" select="document($Variable2)" />
//Here I want to merge above to inputs and later will be used in XSLT below
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Group">
-------
-------
-------
-------
</xsl:template>
</xsl:stylesheet>