[ 
https://issues.apache.org/jira/browse/SYNAPSE-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762789#action_12762789
 ] 

Andreas Veithen commented on SYNAPSE-588:
-----------------------------------------

Jaxen indeed doesn't support the match and replace functions (neither the 
EXSLT, nor the XPath 2 variants). Probably, last time I did this kind of stuff, 
it was in an XSLT or with some other XPath engine.

Now we have two possibilities: Implement the feature in the property mediator 
as you suggest, or define an XPath function (either a Synapse specific one or 
one that is compatible with EXSLT or XPath 2). The second option would have the 
advantage that the feature can be used wherever an XPath expression can appear 
in the config file. WDYT?


> Extending property mediator to set properties based on regular expressions
> --------------------------------------------------------------------------
>
>                 Key: SYNAPSE-588
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-588
>             Project: Synapse
>          Issue Type: New Feature
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-588-DOC.patch, SYNAPSE-588.patch
>
>
> At the moment property mediator just set the value. This value can be direct 
> as well as coming from evaluating a xpath expression. If this value can be 
> matched against a regular expression and the matching string can be set as 
> the value it will be more flexible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to