ora:processXSLT() function in 11g(11.1.1.7.0) not working when passed parameters in bpel 2.0 — oracle-tech

    Forum Stats

  • 3,702,035 Users
  • 2,239,551 Discussions
  • 7,835,727 Comments

Discussions

ora:processXSLT() function in 11g(11.1.1.7.0) not working when passed parameters in bpel 2.0

975726975726 Posts: 44
edited December 2018 in SOA Suite Discusssions

Hi Experts,

  i  have been trying to execute ora:processXSLT('xsl/E-mail.xsl',$inputVariable.payload,$paramVar) function by passing parameters to email-template xsl in 11.1.1.7.0 SOA version.

Unable to access parameters data inside XSL and I am using BPEL 2.0

If any one has solutions for this please provide  me the same.

ora:processXSLT('xsl/E-mail.xsl',$inputVariable.payload,$paramVar)

Parameter data as follows:

<paramVar>

-<parameters xmlns:client="http://xmlns.oracle.com/Application1/Email_Template/EmailTemplate" xmlns="http://xmlns.oracle.com/Application1/Email_Template/EmailTemplate">
-<client:item>
<client:name>
test
</client:name><client:value>
test it
</client:value>

</client:item>
</parameters>

</paramVar>

E-mail.xsl as follows

<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="1.0"

                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"

                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"

                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"

                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"

                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"

                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"

                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

                xmlns:med="http://schemas.oracle.com/mediator/xpath"

                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"

                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"

                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"

                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"

                xmlns:xsd="http://www.w3.org/2001/XMLSchema"

                xmlns:ora="http://schemas.oracle.com/xpath/extension"

                xmlns:ns0="http://xmlns.oracle.com/Application1/Email_Template/EmailTemplate"

                xmlns:client="http://xmlns.oracle.com/Application1/Email_Template/EmailTemplate"

                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"

                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"

                exclude-result-prefixes="xsi xsl xsd ns0 xp20 bpws mhdr bpel oraext dvm hwf med ids bpm xdk xref ora socket ldap">

<!-- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>  -->

<xsl:param name="paramVar"/>

  <xsl:template match="/">

 

<html>

<header>

  <xsl:value-of select="$paramVar/client:item/client:value"/>

</header>

<body>

    <!-- <xsl:value-of select="/client:process/client:input"/>  -->

     <xsl:value-of select="$paramVar/client:item/client:value"/>

    </body>

    </html>

  </xsl:template>

</xsl:stylesheet>

Thanks,

Tagged:
Martien van den Akker

Best Answer

Answers

This discussion has been closed.