Given a table, such as:
col1 col2
a w
b x
c y
d z
e t
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?