SynapseXPath Evaluation of the XPath expression functx:substring-before-match

357 Views Asked by At

I fail to use functx:substring-before-match in one of my mediation sequences

<property expression="functx:substring-before-match($trp:FILE_URI, 'CMDE[a-zA-Z0-9_]*\.zip')" name="baseFolder"/>
[2020-03-27 12:26:56,647] []  INFO - ApplicationManager Successfully Deployed Carbon Application : rsa2wayzz_CA_1.0.0 {super-tenant}
[2020-03-27 12:27:06,742] [] ERROR - SynapseXPath Evaluation of the XPath expression functx:substring-before-match($trp:FILE_URI, 'CMDE[a-zA-Z0-9_]*\.zip') resulted in an error
org.jaxen.UnresolvableException: No Such Function substring-before-match
        at org.jaxen.SimpleFunctionContext.getFunction(SimpleFunctionContext.java:127)
        at org.apache.synapse.util.xpath.SynapseXPathFunctionContext.getFunction(SynapseXPathFunctionContext.java:101)
        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:242)
        at org.jaxen.Context.getFunction(Context.java:216)
        at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:176)
        at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102)
        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:677)
        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:216)
        at org.jaxen.BaseXPath.evaluate(BaseXPath.java:175)

Do you know where I could find a list of the Xquery function supported by what looks like a custom synapse engine?

environment

  • wso2ei 6.5.0
  • synapse 2.1.7-wso2v111 (I think based on the sources)
0

There are 0 best solutions below