[Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-21 Thread Nipuni Perera
Hi All, I have tried xml transformation in ESB. But it gave me the following error for xslt function "distinct-values" ERROR - XSLTMediator Fatal error occurred in stylesheet parsing : javax.xml.transform.TransformerException: Could not find function: distinct-values Thanks, Nipuni _

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-21 Thread Charitha Kankanamge
Are you trying ESB trunk (4.5.0) or an older version? Xpath-2.0 is supported by ESB trunk version. /Charitha On Thu, Jun 21, 2012 at 3:46 PM, Nipuni Perera wrote: > Hi All, > > I have tried xml transformation in ESB. But it gave me the following error > for xslt function "distinct-values" > >

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-21 Thread Nipuni Perera
Hi Charitha, I am trying ESB 4.0.3 Thanks, Nipuni On Thu, Jun 21, 2012 at 3:57 PM, Charitha Kankanamge wrote: > Are you trying ESB trunk (4.5.0) or an older version? Xpath-2.0 is > supported by ESB trunk version. > > /Charitha > > > On Thu, Jun 21, 2012 at 3:46 PM, Nipuni Perera wrote: > >> H

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-21 Thread Charitha Kankanamge
AFAIK, ESB-4.0.3 does not support Xpath-2.0 /Charitha On Thu, Jun 21, 2012 at 4:02 PM, Nipuni Perera wrote: > Hi Charitha, > > I am trying ESB 4.0.3 > > Thanks, > Nipuni > > > On Thu, Jun 21, 2012 at 3:57 PM, Charitha Kankanamge wrote: > >> Are you trying ESB trunk (4.5.0) or an older version?

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-21 Thread Afkham Azeez
If you remove Xalan & use Saxon, you will get XPath 2.0 support in ESB 4.0.3. On Thu, Jun 21, 2012 at 4:07 PM, Charitha Kankanamge wrote: > AFAIK, ESB-4.0.3 does not support Xpath-2.0 > > /Charitha > > On Thu, Jun 21, 2012 at 4:02 PM, Nipuni Perera wrote: > >> Hi Charitha, >> >> I am trying ES

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-21 Thread Achala Aponso
Hi, Following steps will provide Xpath 2.0 support for ESB 4.0.3 1. Remove xalan-2.7.0.wso2v1.jar in ESB_HOME/lib/endorsed/ 2. Remove saxon-8.9.0.wso2v1.jar from ESB_HOME/repository/components/plugins 3. Copy the saxon9he.jar (which is available at [1]) to lib/endorsed and start the server. [1]

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-21 Thread Miyuru Wanninayaka
You can't get XPath 2.0 support with this, just XSLT 2.0 ( yes you can use XPath 2.0 inside XSLT but not outside XSLT like filter, log mediators) Synapse XPath evaluation is tightly bounded to Jaxen via AXIOM Xpath and Jaxen does not support XPath 2.0 [1] In trunk, I have changed Synapse XPath c

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-25 Thread Nipuni Perera
Hi, I tried the above mentioned steps but it didn't work. I also build ESB from trunk but it gives the same error as ESB-4.0.3. Thanks, Nipuni On Thu, Jun 21, 2012 at 8:59 PM, Achala Aponso wrote: > Hi, > > Following steps will provide Xpath 2.0 support for ESB 4.0.3 > > 1. Remove xalan-2.7.0.

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-25 Thread Nipuni Perera
Hi, This is the sample that I have tested in the ESB-4.5.0. SNAPSHOT. I crated custom proxy service and gave the path to XSLT document as follows: http://ws.apache.org/ns/synapse"; name="CustomProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-25 Thread Hiranya Jayathilaka
Don't we have to use some kind of a prefix in-front of "distinct-values"? Thanks, Hiranya On Mon, Jun 25, 2012 at 6:44 PM, Nipuni Perera wrote: > Hi, > > This is the sample that I have tested in the ESB-4.5.0. SNAPSHOT. I crated > custom proxy service and gave the path to XSLT document as follo

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-26 Thread Chintana Wilamuna
I've enabled Saxon on ESB 4.0.3. Following XSLT works without any issue. -Chintana On Mon, Jun 25, 2012 at 6:44 PM, Nipuni Perera wrote: > Hi, > > This is the sample that I have tested in the ESB-4.5.0. SNAPSHOT. I crated > custom proxy service and gave the path to XSLT document as follows:

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-26 Thread Nipuni Perera
I've tried in both ESB 4.0.3 and 4.5.0, but it gives me the same error. I've checked the code I've posted with an on-line XSLT test tool and it gives the desired output without any error. Three parameter version of the key() function which is in the XSLT 2.0 specifications, is also not working in t

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-26 Thread Hiranya Jayathilaka
On Tue, Jun 26, 2012 at 4:54 PM, Nipuni Perera wrote: > I've tried in both ESB 4.0.3 and 4.5.0, but it gives me the same error. > I've checked the code I've posted with an on-line XSLT test tool and it > gives the desired output without any error. > Three parameter version of the key() function w

Re: [Dev] Does the XSLT mediator in ESB support XPath 2.0

2012-06-26 Thread Nipuni Perera
Hi Achala, I followed your steps and it works after enabling saxon in ESB 4.0.3. Thanks, Nipuni On Thu, Jun 21, 2012 at 8:59 PM, Achala Aponso wrote: > Hi, > > Following steps will provide Xpath 2.0 support for ESB 4.0.3 > > 1. Remove xalan-2.7.0.wso2v1.jar in ESB_HOME/lib/endorsed/ > 2. Remo