I’m using Firefox’s XPath-checker and can’t get the syntax right. I have a link:
<a>LinkName</a>
and I try doing:
//a[lower-case(child::text())='linkname']
but I have a syntax error. What am I doing wrong?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no function called
lower-casein XPath 1.0 which is the version of XPath used in Firefox.You need to use the ugly
translatefunction instead:-…but of course you would need to extend this if you need coverage of a wider character-set.