XPATH functions

Apr 26, 2011 at 12:23 AM

This is a neat tool. I would like to be able to test things using xpath functions.

Given the HTML

<a id="'SomeMatchingText0'" href="/Sub/SomeImportantContent">1. SomeImportantLink</a>

 

I want to test the matches functionality to get all the links that start with the SomeMatchingText string.

//a[@id[fn:matches(.,'SomeMatchingText')]]

I get the following error:

Error in your expression:
Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.

Is there a way to access these functions in the tool?



<a id="'SomeMatchingText1'" href="/Sub/SomeImportantContent2">2. SomeImportantLink</a>