properties - how to use lookups in xslt mediator in wso2esb -



properties - how to use lookups in xslt mediator in wso2esb -

in wso2esb, using xslt mediator, want transform webservice result. using xslt file. in file, want lookups, transform values else.

in oracle, can utilize dvm that.

in plain xslt, looks document('somefile.xml') function trick, wso2esb looks xml file on filesystem, , resources property on xslt mediator not translate document() contents right paths. then, tried inputting xml reading property in esb, , pass property mediator. not work, because content of xml passed 1 string value instead of nodeset.

am doing wrong - right way of doing this?

you can inject content of document 'somefile.xml' subtree within current message before invoking xslt mediator :

define local entry named 'somefile' content of 'somefile.xml'

use enrich mediator inject it's content within current message :

<enrich> <source clone="true" xpath="get-property('somefile')"/> <target type="body" action="child"/> </enrich>

in xsl transformation, utilize content rather refering $somefile/xxx... (and forget content in result)

xslt properties wso2esb mediator

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -