liaojinxing / firepath

Automatically exported from code.google.com/p/firepath
GNU General Public License v3.0
0 stars 0 forks source link

FirePath rejects "ends-with"-XPath-function #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
>>
1. open Google
2. try to find xpath ".//*[ends-with(@id,'footer')]"

What is the expected output? What do you see instead?
>>
I expect a match. (like ".//*[starts-with(@id,'footer')]"). But I get an 
"Invalid XPath" message instead.

What version of the product are you using? On what operating system?
>>
0.9.7, Windows

Please provide any additional information below.
>>
ends-with is a valid XPath function 
(http://www.w3schools.com/XPath/xpath_functions.asp)
starts-with and contains are recognized

Original issue reported on code.google.com by qs.dvogt...@googlemail.com on 30 May 2012 at 8:17

GoogleCodeExporter commented 9 years ago
ends-with seems to the XPATH2.0 but firepath currently supports XPATH 1.0 
alone. May be an enhancement would do here.

Thanks,
Prabakaran

Original comment by pappu.s...@gmail.com on 6 Jan 2013 at 1:00

GoogleCodeExporter commented 9 years ago
Sorry for my late answer. I think you are right.

BG,
Daniel

Original comment by qs.dvogt...@googlemail.com on 27 Feb 2013 at 8:32

GoogleCodeExporter commented 9 years ago

Original comment by pierre.t...@gmail.com on 9 Jun 2013 at 11:39

GoogleCodeExporter commented 9 years ago
Hi, similarly functions like fn:matches are only supported in XPATH 2.0
It would be great if firepath is upgraded to 2.0 engine.

Thanks,
praneel

Original comment by praneel....@gmail.com on 21 Oct 2013 at 12:06