Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2017-06-22 Thread Sashika Wijesinghe
Hi All, I have added test cases [1] in Testlink to capture the XPath 2.0 and XSLT 2.0 functions supported by ESB. As mentioned in this mail thread some of the functions failed while saving them due to [2], and some other functions failed with "no such function" [3] exception. Test cases were

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-08 Thread Sohani Weerasinghe
Thanks Shafreen for the input. @Nisrin: Please note Sohani Weerasinghe Senior Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Tue, Aug 9, 2016 at 11:21 AM, Shafreen Anfar

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-08 Thread Shafreen Anfar
Hi Sohani, Sorry for the delayed response. IMO, ideally we should try writing a simple java program with HE and see if it supports that particular function or not. Anyways, since it is not working in ESB. I think it is OK to conclude that is not supported in our ESB. On Fri, Aug 5, 2016 at 10:52

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-04 Thread Sohani Weerasinghe
Hi Shafreen, I have used [1] in testing the functions, since there is no proper reference to get a list of functions supported by the Saxon 9.4 HE. Based on this, can we confirm that the mentioned functions in the above thread are not supported in HE? (so that we can conclude with the functions

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-04 Thread Shafreen Anfar
Hi Sohanai, [+ Asanthi] We are using Saxon: HE (Home Edition) for XAPTH 2 functions. AFAIK, we don't select functionality to support so anything supported by library should already be there, which means it's likely HE edition does not contain function you're looking for. Please have a look at

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-04 Thread Sohani Weerasinghe
Hi ESB Team, Please find the summary of issues encountered while testing the XPath 2.0 functions at [1] ( referred [2] & [3] for syntax) and really appreciate your input on this *1. "Invalid XPath Syntax" occurs when saving the synapse configuration in management console* This error occurs for

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-01 Thread Sohani Weerasinghe
According to [1] if I test the distinct-values function,it behaves as explained below: 1. If I use a rest mock service to get the response and then get the distinct values : Rest mock service response: http://example.org/ACC/;> *557 44* *44* Rest API: http://ws.apache.org/ns/synapse;

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-01 Thread Sohani Weerasinghe
Sohani Weerasinghe Senior Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Mon, Aug 1, 2016 at 1:28 PM, Sohani Weerasinghe wrote: > Hi All, > > It seems, the

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-01 Thread Sohani Weerasinghe
Hi All, It seems, the " Invalid XPapth expression" comes when we use two brackets in the function as below fn:codepoints-to-string(*(*2309, 2358, 2378, 2325*)*) fn:string-join(('a', 'c'), 'bbb') Sohani Weerasinghe Senior Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774

[Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-01 Thread Sohani Weerasinghe
Hi All, I am validating the Xpath 2.0 functions support in ESB ( please refer [1]) and I am using below configuration in defining 'avg' function (Referred [2]), but it seems I am using the wrong syntax. http://www.w3.org/2005/xpath-functions; xmlns:test="http://test;