I am using the Oxygen SDK (17.1.0). I have a framework containing an action which has to create an XML fragment. This XML fragment has an attribute whose value has to be evaluated by an XPath.
I tried to use ${xpath_eval(expression)} but it seems not to work.
This is what I put in my framework file :
Code: Select all
<action>
<field name="id">
<String>test</String>
</field>
<field name="name">
<String>test</String>
</field>
<field name="description">
<String>test</String>
</field>
<field name="largeIconPath">
<String></String>
</field>
<field name="smallIconPath">
<String></String>
</field>
<field name="accessKey">
<String/>
</field>
<field name="accelerator">
<null/>
</field>
<field name="actionModes">
<actionMode-array>
<actionMode>
<field name="xpathCondition">
<String/>
</field>
<field name="argValues">
<serializableOrderedMap>
<entry>
<String>fragment</String>
<String><foo xpath="${xpath_eval((//*/local-name())[1])}">my content</foo></String>
</entry>
</serializableOrderedMap>
</field>
<field name="operationID">
<String>ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation</String>
</field>
</actionMode>
</actionMode-array>
</field>
</action>
Code: Select all
<foo xpath="">my content</foo>
Did I write my expression in a wrong way ?
Thanks for your help.
Johann