I am having issue using dp:serialize and Populate CDATA tag in response in datapower. Issue 1. Not able to convert to string from xml using dp:serialize function. Issue 2. Cdata tag not able to see in proble and soapui response page coming like <![CDATA[sometext]]>
Here is xslt that convert xml to string and populating in CDATA tag.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:dp="http://www.datapower.com/extensions">
<xsl:output method="xml" cdata-section-elements="ConfigurationXML"/>
<xsl:variable name="Configxml" select="document('Config.xml')" />
<xsl:template match="/">
<xsl:variable name="Configstring">
<dp:serialize select="$Configxml"/></xsl:variable>
<Response>
<ConfigurationXML>
<xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
<xsl:copy-of select="$Configstring"/>
<xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
</ConfigurationXML>
</Response>
</xsl:template>
</xsl:stylesheet>