HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
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">&lt;xsl:value-of  select="</xsl:text><xsl:value-of select="$from"/><xsl:text disable-output-escaping="yes">"/&gt;</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">&lt;xsl:value-of  select="</xsl:text><xsl:value-of select="$from"/><xsl:text disable-output-escaping="yes">"/&gt;</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>