ora:translateFromNative is not working in ESB
706746Jun 17 2009 — edited Sep 3 2009I've a requirement to translate the string xml into XML element in my ESB project. Initially I was using orcl:parseEscapedXML however this method doesn't support special characters translation.
I found out that ora:translateFromNative is recommended to solve the above issue however I run into an error when using this method in my xsl transformation in ESB routing.
This is the xsl
+<xsl:stylesheet version="1.0" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"+
+.....+
xmlns:ora="http://schemas.oracle.com/xpath/extension"........
+>+
+<xsl:variable name="specialXML" select="ora:translateFromNative(/tns:PostSubscriberEvent/tns:eventXml,'PRS_ECLP_DEAL_READY%20XML%20Schema%20V3.xsd','EVENTDATA')"/>+
+<xsl:template match="/">+
+<xsl:copy-of select="orcl:parseEscapedXML($specialXML)"/>+
+<inp1:EVENTDATA>+
+<inp1:publisherReceiveDateTime>+
+<xsl:value-of select="/tns:PostSubscriberEvent/tns:publisherReceiveDateTime"/>+
+</inp1:publisherReceiveDateTime>+
+</inp1:EVENTDATA>+
+</xsl:template>+
+</xsl:stylesheet>+
This is the error show in the ESB console.
Error occured while transforming payload using XSL "esb:///ESB_Projects/Workflow_EDSIntegrationESB/PostSubscriberEvent_To_EzPrsEventData.xsl". Reason : XML-22016: (Error) Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.
Anyone can help?