Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Is it possible to use expression inside xpath expression

Hi,
I am using Mule CE 3.2.1 and would like to do the following:

<message-properties-transformer scope="invocation">
<add-message-property key="field1" value="#[xpath:#[header:INVOCATION:my.attribute.1]]"/>
</message-properties-transformer>


What I get now is just an error saying the XPath is invalid as it doesn't resolve the expression '#[header:INVOCATION:my.attribute.1]'. What I am trying to achive is to make the XPath expression 'dynamic' so it is based on properties in the incoming message.

Can someone tell *if* this can be done and how it is easiest to achieve it?

Thx in advance!
1 person has
this question
+1
Reply