Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » xpath expression could not find function matches(need pattern match in xpath expression evaluator)
xpath expression could not find function matches [message #661235] Wed, 23 March 2011 12:09 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: March 2011
Junior Member
Hi,

Using helios, sr2, EE package.

Need to use the XPATH expression evaluator to verify xpath expressions. It's been working great for simple expressions, but now I need to do some pattern matching.

When I try to use matches('abcd', 'abcd') or matches(//mynode, 'someString') I get:

Could not find function: matches

If I try fn:matches('abcd', 'abcd') the error message goes away but I get the <No Matches> result instead.

Is the evaluator in fact working with XPATH 2.0?
How can I determine that?
And, how can I use helios to evaluate expressions with pattern matching?

thanks !
-tom
Re: xpath expression could not find function matches [message #662687 is a reply to message #661235] Thu, 31 March 2011 10:53 Go to previous messageGo to next message
David Carver is currently offline David Carver
Messages: 173
Registered: July 2009
Senior Member
You can switch the XPath expression view, to use XPath 2.0, by default it using XPath 1.0. To do this open the XPath View, and select the View Menu, then select Processors and the XPath 2.0.

Then you can use any XPath 2.0 expression. Underneath the covers this will use the PsychoPath XPath 2.0 processor which is 99.9% conformat to the core specification and is also XML Schema Aware.

Hope this helps.
Re: xpath expression could not find function matches [message #662697 is a reply to message #661235] Thu, 31 March 2011 11:21 Go to previous message
No real name is currently offline No real name
Messages: 2
Registered: March 2011
Junior Member

Just what I needed, yes it does help!

Thanks Dave!!

-tom
Previous Topic:How to capture perspective changes?
Next Topic:XML Editor + Schema Validation question
Goto Forum:
  


Current Time: Wed Jun 19 21:06:08 EDT 2013

Powered by FUDForum. Page generated in 0.01479 seconds