<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="/">
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="OUTPUT">
	</xsl:template>
	<xsl:template match="PARAMETERS">
		<PARAMETERS>
			<xsl:for-each select="*">
				<xsl:variable name="elName" select="local-name()"/>
				<xsl:choose>
					<xsl:when test="../../OUTPUT/*[local-name()=$elName]">
						<xsl:copy-of select="../../OUTPUT/*[local-name()=$elName]"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:copy-of select="."/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</PARAMETERS>
	</xsl:template>
</xsl:stylesheet>