This discussion is archived
1 Reply Latest reply: Jan 31, 2013 3:45 AM by PrazzyJay RSS

Passing params to XSLT in OSB 11g

PrazzyJay Expert
Currently Being Moderated
Hi all,

I was just trying to pass a bind variable to xslt in OSB. It actually works for simple types like string etc.
But I am not able to pass complex XML types to it.

There kind of usage actually works in BPEL and mediators but the same thing is not working in OSB.

here is my xslt

<xsl:stylesheet version="2.0"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:impl="http://test.com/tester/test"
xmlns:dvm = "http://xmlns.oracle.com/dvm"
xmlns:bpel="http://xmlns.oracle.com/Application1/testSoa/BPELProcessTest">
<xsl:param name="title"/>
<xsl:template match="/">
<impl:Transfrom>
<impl:EVENTID>
<xsl:value-of select="$title/columns/column/@name"/>
</impl:EVENTID>
</impl:Transfrom>
</xsl:template>
</xsl:stylesheet>


I passed in following XML as bind variable

<dvm name="testDVM" xmlns="http://xmlns.oracle.com/dvm">
<description></description>
<columns>
<column name="test1"/>
</columns>
<rows>
</dvm>


Thanks,
Prasanna

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points