Subject:how to insert xml file as an node inside another xml Author:James Durning Date:20 Dec 2007 11:55 AM
Use a copy template to copy one:
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
Replace otherfile.xml with the location of your xml file.
<xsl:template match="ns1:Payload">
<xsl:copy>
<xsl:copy-of select="document('otherfile.xml')"/>
</xsl:copy>
</xsl:template>