Hi,
I am facing an issue with Arabic character while constructing a reply message inside CDATA tag. My response message contains some Arabic characters, which is being displayed in non-arabic format inside CDATA.
I am using dp:serialize to serialize the data.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dp="http://www.datapower.com/extensions" exclude-result-prefixes="dp" extension-element-prefixes="dp">
<xsl:output method="xml"/>
<xsl:template match="/" >
<xsl:variable name="dataString">
<dp:serialize select="." omit-xml-decl="yes"/>
</xsl:variable>
<v1:reply xmlns:v1="http://schemas.test/xml/">
<data><xsl:copy-of select="$dataString" /></data>
</v1:reply>
</xsl:template>
</xsl:stylesheet>
Response:
<v1:reply xmlns:v1="http://schemas.test/xml/">
<data><![CDATA[<name>Al Najda St فرع شارع النجده</name>]]></data>
</v1:reply>
Thanks for the assistance.
------------------------------
Waleed A.
------------------------------