Zusammenführen von zwei XML-Dateien mithilfe von XSLT
Ich habe 2 XML-Dateien, die ich mithilfe eines Stylesheets zusammenführen muss
<AssessmentInput>
<ApplicationData>...</AppicationData>
<MetricList>...</MetricList>
</AssessmentInput>
Eines ist ApplicationData und das andere ist MetricList. Hier ist, was ich getan habe, aber es ist nichts in der Nähe, was es sein sollte
<?xml version="1.0" encoding="ascii"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/common" exclude-result-prefixes="xsl exslt">
<xsl:output omit-xml-declaration="yes" method="xml" encoding="UTF-8"/>
<xsl:param name="ApplicationData" select="/"/>
<xsl:param name="MetricList"/>
<xsl:template match="/">
<xsl:apply-templates select="$ApplicationData/ApplicationData"/>
</xsl:template>
<xsl:template match="ApplicationData">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Bitte hilf mir. Ich habe keine Erfahrung mit XSLT.