Given a table, such as:
Is there an XPATH query to obtain the row index based on column content? The following XPATH will find the row of interest:
//row[col1 = 'c']
What I'm looking for is an XPATH function that would return 2 for say, position(//row[col1 = 'c']). Is there such a thing or another apporach?