File: //var/opt/OV/conf/agtrep/ParamPolicyXSLGen.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes" indent="no" cdata-section-elements=" " />
<xsl:param name="from"></xsl:param>
<xsl:param name="mapToNS" select="."></xsl:param>
<xsl:param name="ifEmpty" select="."></xsl:param>
<xsl:param name="ifNotEmpty" select="."></xsl:param>
<xsl:param name="mapType"></xsl:param>
<xsl:template match="/body">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="@*|node()" >
<xsl:choose>
<xsl:when test="contains($mapType, 'ree') and count($mapToNS) = count($mapToNS | .)">
<xsl:text disable-output-escaping="yes"><xsl:value-of select="</xsl:text><xsl:value-of select="$from"/><xsl:text disable-output-escaping="yes">"/></xsl:text>
</xsl:when>
<xsl:when test="contains($mapType, 'rec') and count($mapToNS) = count($mapToNS | .)">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:text disable-output-escaping="yes"><xsl:value-of select="</xsl:text><xsl:value-of select="$from"/><xsl:text disable-output-escaping="yes">"/></xsl:text>
</xsl:copy>
</xsl:when>
<xsl:when test="self::* ">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:when>
<xsl:when test="count(.|../@*)=count(../@*)">
<xsl:copy>
</xsl:copy>
</xsl:when>
<xsl:when test="self::text() ">
<xsl:copy>
</xsl:copy>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>